ModalController class final

Opens and closes exactly one attached Modal.

isOpen is false while detached. open throws in every build mode until a Modal attaches; modals have no pending-open contract. close is a no-op while detached or already closed. Replacing a controller on a live modal transfers control without changing visibility.

Constructors

ModalController()
Starts detached; open throws until a Modal attaches.

Properties

hashCode int
The hash code for this object.
no setterinherited
isOpen bool
Whether the attached modal is currently open, or false while detached.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the attached modal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void
Opens the attached modal.
toString() String
A string representation of this object.
inherited

Operators

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