SheetAction<T> class Null safety

Used for specifying showModalActionSheet's actions.

Annotations

Constructors

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

Properties

hashCode int
The hash code for this object.
read-only, inherited
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.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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