ToastAction class

an action for the toast. May be omitted if the toast has no action, and is only for informational purposes.

actionText is the text that is used to prompt the user, and action is the function that is called when the actionText is tapped.

Constructors

ToastAction.new({required String actionText, required void action()})
const

Properties

action → void Function()
final
actionText String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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