MinimalShellAction class

An action available on every tab in the shell. The action supplies its icon, callback and screen-reader label.

Annotations

Constructors

MinimalShellAction({required IconData icon, required void onPressed(BuildContext context), String? label, bool primary = false, Key? key})
The act beside the shell's tabs.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
The glyph it wears.
final
key → Key?
The key of the action button.
final
label → String?
What the act does, announced for the icon-only square; null says the localized "New".
final
onPressed → void Function(BuildContext context)
The act: the step's write and the typed route it lands on.
final
primary → bool
Accent-fill the square for the app whose act IS its standing invitation; otherwise it wears the ink.
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