SheetAction<T> class

Used for specifying showModalActionSheet's actions.

Annotations

Constructors

SheetAction({required String label, TextStyle textStyle = const TextStyle(), T? key, IconData? icon, bool isDefaultAction = false, bool isDestructiveAction = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Only works for Material Style
final
isDefaultAction bool
Make font weight to bold(Only works for CupertinoStyle).
final
isDestructiveAction bool
Make font color to destructive/error color(red).
final
key → T?
Used for checking selection result
final
label String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle
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