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
-
- Object
- Widget
- StatefulWidget
- CommandScope
- Available extensions
Constructors
-
CommandScope({Key? key, required List<
AppCommand> commands, required Widget child, String label = 'Command scope', bool enabled = true}) -
const
Properties
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/curveapply to the whole chain. With notriggerit 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