BarAction class
Represents a single action button in the bar.
For complete documentation, see BarAction.
Constructors
- BarAction.new({required IconData icon, required String label, required VoidCallback onPressed, bool collapsable = true})
-
Creates a single action button for use in a BarActions widget.
const
Properties
- collapsable → bool
-
Whether this action can be moved to the overflow menu.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
Icon to display for the action.
final
- label → String
-
Text label for the action (shown in tooltip or menu).
final
- onPressed → VoidCallback
-
Function to call when the action is triggered.
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