MinimalSwipeAction class
One action a MinimalSwipeActions row reveals: a square the row's full height on the muted ground, holding the glyph over a short label in its tone's ink.
Destructive actions say destructive: true (the destructive ink); every
other word is the full ink, or a status's own ink — success for a
"done", warning for a snooze — and neutral is the quiet ink of a
"more".
MinimalSwipeAction('Archive', icon: LucideIcons.archive, onPressed: archive)
- Annotations
Constructors
- MinimalSwipeAction(String label, {required VoidCallback onPressed, IconData? icon, bool destructive = false, MinimalTone? tone})
-
An action saying
labelbehind a row.const
Properties
- destructive → bool
-
The destructive register: the destructive ink, whatever tone says.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
A glyph over the label.
final
- label → String
-
The word under the glyph, and what a screen reader offers as the row's
custom action.
final
- onPressed → VoidCallback
-
Runs it; the row closes after.
final
- resolvedTone → MinimalTone
-
The tone this action resolves to.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tone → MinimalTone?
-
The words' ink; null takes the full ink (the destructive ink for
destructive).
final
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