CommandScope class

Adds commands to the active app command scope.

The scope also emits shortcut KeyBindings for its local commands so keyboard input still flows through the existing dispatcher.

Inheritance
Available extensions

Constructors

CommandScope({Key? key, required List<AppCommand> commands, required Widget child, String label = 'Command scope', bool enabled = true})
const

Properties

child → Widget
final
commands → List<AppCommand>
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
finalinherited
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

animate({Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate

Available on Widget, provided by the AnimateExtension extension

Starts an Animate chain over this widget. duration / curve apply to the whole chain. With no trigger it plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes.
createElement() → StatefulElement
Creates the Element that will mount this widget into the tree.
inherited
createState() → State<CommandScope>
Creates the mutable state for this widget at the current location in the tree. Called exactly once per StatefulElement instance.
override
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