Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter delay a function

Future.delayed(const Duration(milliseconds: 500), () {

// Here you can write your code

  setState(() {
    // Here you can write your code for open new view
  });

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #delay #function
ADD COMMENT
Topic
Name
7+9 =