Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Delay in flutter

Future.delayed(Duration(seconds: 2), () { // <-- Delay here
  setState(() {
    _isLoading = false; // <-- Code run after delay
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Delay #flutter
ADD COMMENT
Topic
Name
2+2 =