Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

calling a method after the build method is run

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_) {
       Future.delayed(Duration(seconds: 3), () => yourFunction());
    });
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calling #method #build #method #run
ADD COMMENT
Topic
Name
3+7 =