of static method

Implementation

static OverlayController of(BuildContext context) {
  final controller = maybeControllerOf(context);
  if (controller == null) {
    throw FlutterError(
        'OverlayController.of() called without an `InteractiveOverlayScope` ancestor.');
  }
  return controller;
}