Answers for "initstate not initializing variables"

0

initstate not initializing variables

make sure to add the @override decorator and hot restart (not reload):

late String foo;

@override
void initState() {
    foo = "hello world";
    super.initState();
  }
Posted by: Guest on May-02-2022

Browse Popular Code Answers by Language