In Dart, if a future doesn’t produce any usable value then the future’s type is Future<void> . Also, if the function doesn’t explicitly return any value, then the return type is also Future<void>.
In Dart, if a future doesn’t produce any usable value then the future’s type is Future<void> . Also, if the function doesn’t explicitly return any value, then the return type is also Future<void>.