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

GlobalModalStack()

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Size of the stack.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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