maybeControllerOf static method

PolylineController? maybeControllerOf(
  1. BuildContext context
)

Implementation

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