copyWith method

FlexPlayerConfiguration copyWith({
  1. bool? isFullScreen,
  2. bool? controlsVisible,
  3. Orientation? orientationonFullScreen,
  4. String? thumbnail,
  5. double? aspectRatio,
  6. bool? autoDispose,
  7. bool? autoPlay,
  8. bool? loop,
  9. bool? showControls,
  10. double? volume,
  11. double? playbackSpeed,
  12. Duration? position,
  13. bool? isPlaying,
  14. bool? autoQuality,
  15. Widget? errorWidet,
  16. bool? showControlsOnError,
})

Implementation

FlexPlayerConfiguration copyWith({
  bool? isFullScreen,
  bool? controlsVisible,
  Orientation? orientationonFullScreen,
  String? thumbnail,
  double? aspectRatio,
  bool? autoDispose,
  bool? autoPlay,
  bool? loop,
  bool? showControls,
  double? volume,
  double? playbackSpeed,
  Duration? position,
  bool? isPlaying,
  bool? autoQuality,
  Widget? errorWidet,
  bool? showControlsOnError,
}) {
  return FlexPlayerConfiguration(
    isFullScreen: isFullScreen ?? this.isFullScreen,
    controlsVisible: controlsVisible ?? this.controlsVisible,
    orientationonFullScreen:
        orientationonFullScreen ?? this.orientationonFullScreen,
    thumbnail: thumbnail ?? this.thumbnail,
    aspectRatio: aspectRatio ?? this.aspectRatio,
    autoDispose: autoDispose ?? this.autoDispose,
    autoPlay: autoPlay ?? this.autoPlay,
    loop: loop ?? this.loop,
    showControls: showControls ?? this.showControls,
    volume: volume ?? this.volume,
    playbackSpeed: playbackSpeed ?? this.playbackSpeed,
    position: position ?? this.position,
    isPlaying: isPlaying ?? this.isPlaying,
    autoQuality: autoQuality ?? this.autoQuality,
    errorWidget: errorWidet ?? errorWidget,
    showControlsOnError: showControlsOnError ?? this.showControlsOnError,
  );
}