GlobalModalStack class
May be added to DI to enforce that a single Modal is visible at a time.
Creates a stack of modals, hiding the previous one when a new is shown.
Example use: bootstrap(MyApp, const GlobalModalStack);
NOTE: Usage of this removes Modal's built in LIFO stack.
- Annotations
-
- @Injectable()
Constructors
Properties
Methods
-
closeAll(
) → Future< void> - Tell all the modals to close in reverse order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onModalClosed(
Modal modal) → void -
Should be triggered when
modal
is closed. -
onModalOpened(
Modal modal) → void -
Should be triggered when
modal
is opened. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited