Pattern: Use of void async
Issue: -
When declaring an async method or function which does not return a value,
declare that it returns Future<void>
and not just void.
Example of incorrect code:
void f() async {}
void f2() async => null;
Example of correct code:
Future<void> f() async {}
Future<void> f2() async => null;