waitForVideoControllerInitializationIfAttached property

Future<void> get waitForVideoControllerInitializationIfAttached

Future<void> to wait for VideoController (from package:media_kit_video) initialization.

Implementation

Future<void> get waitForVideoControllerInitializationIfAttached {
  if (isVideoControllerAttached) {
    return videoControllerCompleter.future;
  }
  return Future.value(null);
}