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
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