Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.5 KB

File metadata and controls

47 lines (30 loc) · 1.5 KB

Futures: await vs unawaited vs ignore

When you call a method that returns a Future, you have a decision to make:

  • use await (most common)
  • use unawaited
  • use ignore

This decision affects how the code is executed when the Future throws, so make sure you understand each case well.

Here's an explanation. 👇


Here are some resources where you can learn more:


Previous Next
Useful arguments in the log function (from dart:developer) The OverflowBar widget