DesignSplitAction class
An action in a split button's menu.
- Annotations
Constructors
- DesignSplitAction({required String label, required VoidCallback? onPressed, Object? data})
-
An action
labelled, thatonPressedruns; null disables it.const
Properties
- data → Object?
-
Anything the look needs to paint it (an icon).
final
- enabled → bool
-
Whether it can be pressed: it has onPressed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Its name.
final
- onPressed → VoidCallback?
-
Runs it, after the menu closed; null disables it.
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