flutter switch using Getx to keep it on off when user re visit app

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 8

  • @binayachauhan52
    @binayachauhan52 2 года назад +1

    an this be used for multiple switch in same page

  • @Tech1st
    @Tech1st 3 года назад

    in controller why are u call same class and method name? (GetXSwitchState)

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 года назад

      It’s not method name
      It’s is a constructor of GetXSwitchState where I check what is the previous data been stored my user
      Switch was on/off before closing app

    • @Tech1st
      @Tech1st 3 года назад +1

      @@ProtoCodersPoint if I create constructor Its automatically its checking all times?

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 года назад +1

      @@Tech1st Yes

    • @Tech1st
      @Tech1st 3 года назад +1

      @@ProtoCodersPoint nice.. just now i know it.thank you

    • @ProtoCodersPoint
      @ProtoCodersPoint  3 года назад

      Good 😊