copyWith method

BetterVideoPlayerValue copyWith({
  1. bool? isFullScreenMode,
  2. double? visibilityFraction,
  3. bool? isLoading,
  4. bool? isPauseFromUser,
  5. bool? isVideoFinish,
  6. bool? wifiInterrupted,
  7. BetterVideoPlayerConfiguration? configuration,
  8. BetterVideoPlayerDataSource? dataSource,
  9. VideoPlayerController? videoPlayerController,
  10. VoidCallback? enterFullScreenCallback,
  11. VoidCallback? exitFullScreenCallback,
})

Implementation

BetterVideoPlayerValue copyWith({
  bool? isFullScreenMode,
  double? visibilityFraction,
  bool? isLoading,
  bool? isPauseFromUser,
  bool? isVideoFinish,
  bool? wifiInterrupted,
  BetterVideoPlayerConfiguration? configuration,
  BetterVideoPlayerDataSource? dataSource,
  VideoPlayerController? videoPlayerController,
  VoidCallback? enterFullScreenCallback,
  VoidCallback? exitFullScreenCallback,
}) {
  return BetterVideoPlayerValue(
    playerKey: this.playerKey,
    isFullScreenMode: isFullScreenMode ?? this.isFullScreenMode,
    visibilityFraction: visibilityFraction ?? this.visibilityFraction,
    isLoading: isLoading ?? this.isLoading,
    isVideoFinish: isVideoFinish ?? this.isVideoFinish,
    wifiInterrupted: wifiInterrupted ?? this.wifiInterrupted,
    configuration: configuration ?? this.configuration,
    dataSource: dataSource ?? this.dataSource,
    videoPlayerController: videoPlayerController ?? this.videoPlayerController,
    enterFullScreenCallback: enterFullScreenCallback ?? this.enterFullScreenCallback,
    exitFullScreenCallback: exitFullScreenCallback ?? this.exitFullScreenCallback,
  );
}