ScopeHelpers class

Shared utility methods for scope widgets to reduce code duplication.

Each scope widget can use these helpers to look up options from the nearest InheritedInteractiveScope ancestor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

maybeOptionsOf<T extends Object>(BuildContext context) InteractiveOptions<T>?
Looks up the InteractiveOptions from the nearest ancestor scope.
optionsOf<T extends Object>(BuildContext context, String scopeName) InteractiveOptions<T>
Looks up the InteractiveOptions from the nearest ancestor scope.