Async and Await

  • Use await to wait until a Future completes
  • Use multiple awaits to run Futures in sequences
  • await is only allowed inside async functions
  • use try/catch to handle exceptions
  • async/await + try/catch is a great way of working with Futures in Dart

Another Example