flutter-template icon indicating copy to clipboard operation
flutter-template copied to clipboard

chore: Linter updates: Void-Async

Open nivisi opened this issue 3 years ago • 0 comments

So instead of having this:

void something() async {
  final variable = 0;
  ...
  await future();
}

We will have:

Future<void> something() {
  final variable = 0;
  ...
  return future();
}

It's good overall, but it also optimises the future's work in the new Dart 2.18 version.

nivisi avatar Sep 05 '22 12:09 nivisi