timer 

Send to Kindle
home » snippets » dart » timer



Snippets

import 'dart:async';

main() {
  new Timer(new Duration(seconds: 1), () => print('timer'));
  print('end of main');
  # Output is:
  ##  end of main
  ##  timer
}