-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: error messageError messages from the Flutter frameworkError messages from the Flutter frameworkd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Milestone
Description
The Actions
widget has a number of static methods with a nullOk
parameter, which can be used to enable or disable the throwing of errors when the caller's requested object was not found.
Turns out, this parameter is only considered when asserts are enabled. This feels a little iffy to me, as the documentation makes no mention of how the contract can change depending on environment.
Request: Improve docs (and maybe the name of the param, since it's sort of a debug only thing), or alternatively normalize behavior between asserts-enabled and disabled builds.
Affected methods:
Actions.find
Actions.of
Actions.handler
Actions.invoke
Thanks!
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: error messageError messages from the Flutter frameworkError messages from the Flutter frameworkd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.