copyWith method
BetterVideoPlayerValue
copyWith({
- bool? isFullScreenMode,
- double? visibilityFraction,
- bool? isLoading,
- bool? isPauseFromUser,
- bool? isVideoFinish,
- bool? wifiInterrupted,
- BetterVideoPlayerConfiguration? configuration,
- BetterVideoPlayerDataSource? dataSource,
- VideoPlayerController? videoPlayerController,
- VoidCallback? enterFullScreenCallback,
- 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,
);
}