ModalKey<T> class

showOverlay with block other show with the same ModalKey.

for example

final modalKey = ModalKey('simple');

//popup a simple message on top of screen
showSimpleNotification(Text('modal example'), key: modalKey);

//when previous notification is showing, popup again whit this key
//this notification will be rejected.
showSimpleNotification(Text('modal example 2'), key: modalKey);

Inheritance

Constructors

ModalKey(T value)

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value to which this key delegates its operator==
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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