copyWith method

EnabledControls copyWith({
  1. bool? desktopTapToPlayAndPause,
  2. bool? seekSwipes,
  3. bool? volumeSwipes,
  4. bool? brightnessSwipes,
  5. bool? doubleTapToSeek,
  6. bool? desktopDoubleTapToFullScreen,
  7. bool? volumeArrows,
  8. bool? seekArrows,
  9. bool? escapeKeyCloseFullScreen,
  10. bool? numPadDecimalKeyToggleFit,
  11. bool? enterKeyOpensFullScreen,
  12. bool? spaceKeyTogglePlay,
  13. bool? onLongPressSpeedUp,
})

Implementation

EnabledControls copyWith(
    {bool? desktopTapToPlayAndPause,
    bool? seekSwipes,
    bool? volumeSwipes,
    bool? brightnessSwipes,
    bool? doubleTapToSeek,
    bool? desktopDoubleTapToFullScreen,
    bool? volumeArrows,
    bool? seekArrows,
    bool? escapeKeyCloseFullScreen,
    bool? numPadDecimalKeyToggleFit,
    bool? enterKeyOpensFullScreen,
    bool? spaceKeyTogglePlay,
    bool? onLongPressSpeedUp}) {
  return EnabledControls(
      desktopTapToPlayAndPause:
          desktopTapToPlayAndPause ?? this.desktopTapToPlayAndPause,
      seekSwipes: seekSwipes ?? this.seekSwipes,
      volumeSwipes: volumeSwipes ?? this.volumeSwipes,
      brightnessSwipes: brightnessSwipes ?? this.brightnessSwipes,
      doubleTapToSeek: doubleTapToSeek ?? this.doubleTapToSeek,
      desktopDoubleTapToFullScreen:
          desktopDoubleTapToFullScreen ?? this.desktopDoubleTapToFullScreen,
      volumeArrows: volumeArrows ?? this.volumeArrows,
      seekArrows: seekArrows ?? this.seekArrows,
      escapeKeyCloseFullScreen:
          escapeKeyCloseFullScreen ?? this.escapeKeyCloseFullScreen,
      numPadDecimalKeyToggleFit:
          numPadDecimalKeyToggleFit ?? this.numPadDecimalKeyToggleFit,
      enterKeyOpensFullScreen:
          enterKeyOpensFullScreen ?? this.enterKeyOpensFullScreen,
      spaceKeyTogglePlay: spaceKeyTogglePlay ?? this.spaceKeyTogglePlay,
      onLongPressSpeedUp: onLongPressSpeedUp ?? this.onLongPressSpeedUp);
}