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. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value → T
The value to which this key delegates its operator==
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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