INNER CODE UNIT · Dart
ModalKey
boyan01/overlay_support · lib/src/overlay_keys.dart:31
class ModalKey<T> extends ValueKey<T> {
ModalKey(T value) : super(value);
@override
bool operator ==(other) {
return other is ModalKey<T> && value == other.value;
}
@override
int get hashCode => Object.hash(runtimeType, value);
}
///
/// 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.
///