ShellAction class
The app-level act beside the shell's tabs: the one thing reachable from every root — add, compose, capture — with the glyph it wears and what it does. A system draws it in its own way (a floating action button, a disc in the bar, a square at its end).
- Implementers
- Annotations
Constructors
- ShellAction({required IconData icon, required void onPressed(BuildContext context), String? label, bool accent = false, Key? key})
-
Creates a ShellAction.
const
Properties
- accent → bool
-
Whether the act is the app's standing invitation, drawn in the
system's accent rather than its quieter default.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
The glyph the act wears.
final
- key → Key?
-
The walkthrough key of the declared step the act performs, set on the
act's hit target.
final
- label → String?
-
What the act does, announced for an icon-only control; a system may
also print it (an extended action). Null announces nothing beyond the
system's default.
final
- onPressed → void Function(BuildContext context)
-
The act: the declared step's write and the route it lands
on, run with a context under the router.
final
- 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