maybeControllerOf static method

OverlayController? maybeControllerOf(
  1. BuildContext context
)

Implementation

static OverlayController? maybeControllerOf(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<
      InheritedInteractiveScope<InteractiveOverlayImage>>();
  return scope?.controller as OverlayController?;
}