INNER CODE UNIT · Dart

PortalLinkScope

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

class PortalLinkScope extends InheritedWidget {
  const PortalLinkScope({
    Key? key,
    required this.debugName,
    required this.portalLink,
    required this.portalLabels,
    required Widget child,
  }) : super(key: key, child: child);

  final String? debugName;
  final PortalLink portalLink;
  final List<PortalLabel<dynamic>> portalLabels;

  @override
  bool updateShouldNotify(PortalLinkScope oldWidget) {
    return oldWidget.portalLink != portalLink ||
        !listEquals(oldWidget.portalLabels, portalLabels);
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…