FlickVideoPlayer constructor

const FlickVideoPlayer({
  1. Key? key,
  2. required FlickManager flickManager,
  3. Widget flickVideoWithControls = const FlickVideoWithControls(controls: const FlickPortraitControls()),
  4. Widget? flickVideoWithControlsFullscreen,
  5. List<SystemUiOverlay> systemUIOverlay = SystemUiOverlay.values,
  6. List<SystemUiOverlay> systemUIOverlayFullscreen = const [],
  7. List<DeviceOrientation> preferredDeviceOrientation = const [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown],
  8. List<DeviceOrientation> preferredDeviceOrientationFullscreen = const [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight],
  9. bool wakelockEnabled = true,
  10. bool wakelockEnabledFullscreen = true,
  11. dynamic webKeyDownHandler(
    1. KeyboardEvent,
    2. FlickManager
    ) = flickDefaultWebKeyDownHandler,
})

Implementation

const FlickVideoPlayer({
  Key? key,
  required this.flickManager,
  this.flickVideoWithControls = const FlickVideoWithControls(
    controls: const FlickPortraitControls(),
  ),
  this.flickVideoWithControlsFullscreen,
  this.systemUIOverlay = SystemUiOverlay.values,
  this.systemUIOverlayFullscreen = const [],
  this.preferredDeviceOrientation = const [
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ],
  this.preferredDeviceOrientationFullscreen = const [
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.landscapeRight
  ],
  this.wakelockEnabled = true,
  this.wakelockEnabledFullscreen = true,
  this.webKeyDownHandler = flickDefaultWebKeyDownHandler,
}) : super(key: key);