of static method

VideoController? of(
  1. BuildContext context
)

Locate VideoController for take control of playback state externally.

Implementation

static VideoController? of(BuildContext context) {
  return context.findAncestorStateOfType<_MediaPlaybackState>()?.videoCtrl;
}