FlickManager constructor

FlickManager({
  1. Function? onVideoEnd,
  2. GetPlayerControlsTimeout? getPlayerControlsTimeout,
  3. required VideoPlayerController videoPlayerController,
  4. bool autoInitialize = true,
  5. bool autoPlay = true,
})

Implementation

FlickManager({
  this.onVideoEnd,
  GetPlayerControlsTimeout? getPlayerControlsTimeout,
  required VideoPlayerController videoPlayerController,

  /// Auto initialize the video.
  bool autoInitialize = true,

  /// Auto-play video once initialized.
  bool autoPlay = true,
}) : this.getPlayerControlsTimeout =
          getPlayerControlsTimeout ?? getPlayerControlsTimeoutDefault {
  _flickControlManager = FlickControlManager(
    flickManager: this,
  );
  _flickVideoManager = FlickVideoManager(
      flickManager: this, autoPlay: autoPlay, autoInitialize: autoInitialize);
  _flickDisplayManager = FlickDisplayManager(
    flickManager: this,
  );
  _flickVideoManager!._handleChangeVideo(videoPlayerController);
}