ModalAction class

Helper class for actions to show on a modal sheet

Constructors

ModalAction({String label, VoidCallback onPressed, bool isDefaultAction: false, bool isDestructive: false, bool enabled: true, IconData icon})
Constructs a ModalAction object

Properties

enabled bool
If the action is active
final
hashCode int
The hash code for this object. [...]
read-only, inherited
icon IconData
final
isDefaultAction bool
If the action is a default action (iOS only)
final
isDestructive bool
If the action is destructive (iOS only)
final
label String
The label/title of the action
final
onPressed VoidCallback
The callback function when the action is pressed.
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
Returns a string representation of this object.
inherited

Operators

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