INNER CODE UNIT · Dart

of

boyan01/overlay_support · lib/src/overlay_entry.dart:21

  static OverlaySupportEntry? of(BuildContext context) {
    final animatedOverlay =
        context.findAncestorWidgetOfExactType<_AnimatedOverlay>();
    assert(() {
      if (animatedOverlay == null) {
        throw FlutterError('No KeyedOverlay widget found.\n'
            'The [context] should be the BuildContext which build a element in Notification.\n'
            'is that you called this method from the right scope? ');
      }
      return true;
    }());
    if (animatedOverlay == null) {
      return OverlaySupportEntry.empty();
    }
    return animatedOverlay.overlaySupportState
        .getEntry(key: animatedOverlay.overlayKey);
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…