NativeVideoView constructor

const NativeVideoView({
  1. Key? key,
  2. bool? keepAspectRatio,
  3. bool? showMediaController,
  4. bool? useExoPlayer,
  5. bool? autoHide,
  6. Duration? autoHideTime,
  7. bool? enableVolumeControl,
  8. required ViewCreatedCallback onCreated,
  9. required PreparedCallback onPrepared,
  10. required CompletionCallback onCompletion,
  11. ErrorCallback? onError,
  12. ProgressionCallback? onProgress,
})

Constructor of the widget.

Implementation

const NativeVideoView({
  Key? key,
  this.keepAspectRatio,
  this.showMediaController,
  this.useExoPlayer,
  this.autoHide,
  this.autoHideTime,
  this.enableVolumeControl,
  required this.onCreated,
  required this.onPrepared,
  required this.onCompletion,
  this.onError,
  this.onProgress,
}) : super(key: key);