TransientKey<T> class

The OverlaySupportEntry associated with TransientKey will be dismiss immediately when next OverlaySupportEntry showing by showOverlay with the same key.

This key was designed for toast, but it seems wired, so have not use yet.

For example:


final key = const TransientKey('transient');

showSimpleNotification(Text('modal example'), key: key);

// The previous notification will be dismiss immediately, instead of have
// a disappearing animation effect.
showSimpleNotification(Text('modal example 2'), key: key);

Inheritance

Constructors

TransientKey(T value)
const

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