Option class

The Button Option Class

Implementers

Constructors

Option({String? text, VoidCallback? onPressed, dynamic result})
Supply the button's text, callback and dynamic result value.

Properties

hashCode int
The hash code for this object.
no setterinherited
onPressed VoidCallback?
The optional callback function
final
result → dynamic
The result of any type that's assigned when the button is pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The optional Button Text label.
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