NativeMacosDialog class

Constructors

NativeMacosDialog({String? title, String? message, NativeMacosDialogStyle style = NativeMacosDialogStyle.informational, required List<NativeMacosDialogButton> buttons})

Properties

buttons List<NativeMacosDialogButton>
List of buttons that the dialog has. Please note that if there is no button, the user cannot close the dialog unless he closes the whole app. The same also applies when all buttons are disabled (onPressed is null)
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Main content of the dialog
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style NativeMacosDialogStyle
Style of the dialog, which determines the look and feel of the dialog
final
title String?
Title of the dialog
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<void>
Shows the native macOS Dialog and calls the specific onPressed handler
toString() String
A string representation of this object.
inherited

Operators

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