copyWith method

BetterVideoPlayerConfiguration copyWith({
  1. bool? autoPlay,
  2. bool? looping,
  3. Widget? placeholder,
  4. bool? allowedScreenSleep,
  5. bool? autoPlayWhenResume,
  6. Widget? controls,
  7. Widget? fullScreenControls,
})

Implementation

BetterVideoPlayerConfiguration copyWith({
  bool? autoPlay,
  bool? looping,
  Widget? placeholder,
  bool? allowedScreenSleep,
  bool? autoPlayWhenResume,
  Widget? controls,
  Widget? fullScreenControls,
}) {
  return BetterVideoPlayerConfiguration(
    autoPlay: autoPlay ?? this.autoPlay,
    looping: looping ?? this.looping,
    placeholder: placeholder ?? this.placeholder,
    allowedScreenSleep: allowedScreenSleep ?? this.allowedScreenSleep,
    autoPlayWhenResume: autoPlayWhenResume ?? this.autoPlayWhenResume,
    controls: controls ?? this.controls,
    fullScreenControls: fullScreenControls ?? this.fullScreenControls,
  );
}