of static method

Implementation

static PlaygroundController? of(BuildContext context) {
  final result = context
      .dependOnInheritedWidgetOfExactType<PlaygroundControllerProvider>();
  return result?.controller;
}