M3EDialogController class

Drives an open dialog programmatically.

Pass to M3EDialog.show, showFullScreen or showAdaptive. Set hasUnsavedChanges so dismissing shows a discard confirmation.

Inheritance

Constructors

M3EDialogController({bool hasUnsavedChanges = false, M3EDialogDiscardLabels discardLabels = const M3EDialogDiscardLabels()})
M3EDialogController.

Properties

discardLabels → M3EDialogDiscardLabels
Copy for the discard confirmation.
final
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
hasUnsavedChanges ↔ bool
Whether dismissing must confirm discarding changes.
getter/setter pair
isOpen → bool
Whether a dialog is attached and showing.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
variant → M3EDialogVariant?
Current layout of the open dialog, or null when closed.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
attach(M3EDialogControllerClient client) → void
Binds client. Called by the dialog host.
close([Object? result]) → void
Closes the dialog with result, skipping guards.
detach(M3EDialogControllerClient client) → void
Unbinds client. Called by the dialog host.
dismiss() → Future<bool>
Dismisses through guards and discard confirmation.
dispose() → void
Discards any resources used by the object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() → String
A string representation of this object.
inherited
updateVariant(M3EDialogVariant? value) → void
Reports the layout in use. Called by the dialog host.

Operators

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