ZdsSlidableAction class

Defines an action that will be shown when sliding on a ZdsSlidableListTile.

Constructors

ZdsSlidableAction({required String label, void onPressed(BuildContext)?, IconData? icon, Color? backgroundColor, Color? foregroundColor, bool autoclose = true, EdgeInsets padding = EdgeInsets.zero, TextOverflow? textOverflow})
Defines an action that will be shown when sliding on a ZdsSlidableListTile. label must not be empty. backgroundColor, foregroundColor, and autoclose must not be null

Properties

autoclose bool
Whether to automatically close the actions after tapping on this action. Defaults to true.
final
backgroundColor Color?
Background color of the widget.
final
foregroundColor Color?
The label and icon color.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
An optional icon that will be shown below the label.
final
label String
The text that will be shown above the icon. It can't be empty.
final
onPressed → (void Function(BuildContext)?)
Function called on press of the widget.
final
padding EdgeInsets
The padding of the OutlinedButton
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textOverflow TextOverflow?
Optional parameter to handle overflowing text
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