of static method

Implementation

static ChewieController of(BuildContext context) {
  final chewieControllerProvider = context
      .dependOnInheritedWidgetOfExactType<_ChewieControllerProvider>()!;

  return chewieControllerProvider.controller;
}