SwipeAction class final

One action revealed behind a list item as it is swiped.

Inheritance

Constructors

SwipeAction({required String id, String label = '', bool removes = true})
factory

Properties

background → Color
no setter
fields → Props
The values that differ from the defaults.
finalinherited
foreground → Color
no setter
hashCode → int
The hash code for this object.
no setterinherited
icon → Json?
no setter
iconSize → double
no setter
id → String
no setter
inline → bool
no setter
isEmpty → bool
Whether every field has its default.
no setterinherited
label → String
no setter
labelStyle → TextStyle
no setter
removes → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spec → WidgetSpec
The declared fields.
no setteroverride
when → String
no setter

Methods

get<T>(PropDef<T> field) → T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → SwipeAction?