of static method
Locate VideoController
for take control of playback state externally.
Implementation
static VideoController? of(BuildContext context) {
return context.findAncestorStateOfType<_MediaPlaybackState>()?.videoCtrl;
}
Locate VideoController
for take control of playback state externally.
static VideoController? of(BuildContext context) {
return context.findAncestorStateOfType<_MediaPlaybackState>()?.videoCtrl;
}