Answers for "calling a method after the build method is run"

0

calling a method after the build method is run

@override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_) {
       Future.delayed(Duration(seconds: 3), () => yourFunction());
    });
  }
Posted by: Guest on May-27-2021

Code answers related to "calling a method after the build method is run"

Browse Popular Code Answers by Language