DesignSwipeAction class
An action behind a row.
- Annotations
Constructors
- DesignSwipeAction({required String label, required VoidCallback onPressed, bool destructive = false, Object? data})
-
An action
labelled, thatonPressedruns.const
Properties
- data → Object?
-
Anything the look needs to paint it (an icon, a colour).
final
- destructive → bool
-
Whether it removes the row: a full swipe slides the row away first.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Its name (and its screen reader action's).
final
- onPressed → VoidCallback
-
Runs 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