daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'dart:async';
  2.  
  3. main() async {
  4.   print('About to fetch data...');
  5.   var result = await get('bla');
  6.   print(result);
  7. }
  8.  
  9. Future<String> get(String url) {
  10.   return new Future.delayed(new Duration(seconds: 3), () {
  11.     return 'Got the data!';
  12.   });
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top