Created
November 5, 2021 02:20
-
-
Save mj-hd/d24ceef3b586893e0857b05d4ce319f4 to your computer and use it in GitHub Desktop.
dart_future_error.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async { | |
final error = Future<void>.error(Error()); | |
// この行を入れると、Uncaught Errorが2つでる | |
// await Future.delayed(Duration.zero); | |
await error; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment