NativeMacosDialogButton class

DTO for a NSButton

Constructors

NativeMacosDialogButton({required String text, bool destructive = false, VoidCallback? onPressed})

Properties

destructive bool
If the button is not the first button, it can be destructive since macOS 11
final
enabled bool
Get if the button is enabled or not
no setter
hashCode int
The hash code for this object.
no setterinherited
onPressed VoidCallback?
Callback when the user clicks the button If this callback is null, then the button is disabled
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text of the button which is displayed
final

Methods

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

Operators

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