INNER CODE UNIT · Dart

PortalLinkOverlay

fzyzcjy/flutter_portal · lib/src/portal_link.dart:19

class PortalLinkOverlay {
  const PortalLinkOverlay(this.overlay, this.anchor);

  final RenderBox overlay;
  final Anchor anchor;

  // ONLY consider overlay, does NOT consider anchor
  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is PortalLinkOverlay &&
          runtimeType == other.runtimeType &&
          overlay == other.overlay;

  @override
  int get hashCode => overlay.hashCode;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…