Skip to content

Use @awaitNotRequired in Flutter SDK #168555

@srawlins

Description

@srawlins

In a number of discussions (dart-lang/sdk#46218, dart-lang/sdk#58348), Flutter team members have indicated that they would use an @awaitNotRequired annotation if it were available, to annotate Future-returning functions that do not need to be awaited or wrapped in unawaited().

In the next release of the meta package, 1.17.0, we'll be releasing @awaitNotRequired.

I'm just creating this issue to track adding @awaitNotRequired annotations to everywhere in the Flutter SDK that we wanted them. In dart-lang/core#742, @goderbauer mentioned https://api.flutter.dev/flutter/animation/AnimationController/forward.html.

CC @Piinks

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions