INNER CODE UNIT · Dart
PortalLabel
fzyzcjy/flutter_portal · lib/src/portal.dart:94
class PortalLabel<T> {
/// Creates a portal label that delegates its [operator==] to the given value.
const PortalLabel(this.value);
/// The value to which this portal label delegates its [operator==]
final T value;
static const main = _PortalMainLabel();
@override
bool operator ==(Object other) {
if (other.runtimeType != runtimeType) {
return false;
}
return other is PortalLabel<T> && other.value == value;
}
@override