copyWith method
PipFlutterPlayerConfiguration
copyWith({
- double? aspectRatio,
- bool? autoPlay,
- Duration? startAt,
- bool? looping,
- bool? fullScreenByDefault,
- Widget? placeholder,
- bool? showPlaceholderUntilPlay,
- bool? placeholderOnTop,
- Widget? overlay,
- bool? showControlsOnInitialize,
- Widget errorBuilder(
- BuildContext context,
- String? errorMessage
- bool? allowedScreenSleep,
- double? fullScreenAspectRatio,
- List<
DeviceOrientation> ? deviceOrientationsOnFullScreen, - List<
SystemUiOverlay> ? systemOverlaysAfterFullScreen, - List<
DeviceOrientation> ? deviceOrientationsAfterFullScreen, - PipFlutterPlayerRoutePageBuilder? routePageBuilder,
- dynamic eventListener()?,
- PipFlutterPlayerSubtitlesConfiguration? subtitlesConfiguration,
- PipFlutterPlayerControlsConfiguration? controlsConfiguration,
- BoxFit? fit,
- double? rotation,
- dynamic playerVisibilityChangedBehavior(
- double visibilityFraction
- List<
PipFlutterPlayerTranslations> ? translations, - bool? autoDetectFullscreenDeviceOrientation,
- bool? handleLifecycle,
- bool? autoDispose,
- bool? expandToFill,
Implementation
PipFlutterPlayerConfiguration copyWith({
double? aspectRatio,
bool? autoPlay,
Duration? startAt,
bool? looping,
bool? fullScreenByDefault,
Widget? placeholder,
bool? showPlaceholderUntilPlay,
bool? placeholderOnTop,
Widget? overlay,
bool? showControlsOnInitialize,
Widget Function(BuildContext context, String? errorMessage)? errorBuilder,
bool? allowedScreenSleep,
double? fullScreenAspectRatio,
List<DeviceOrientation>? deviceOrientationsOnFullScreen,
List<SystemUiOverlay>? systemOverlaysAfterFullScreen,
List<DeviceOrientation>? deviceOrientationsAfterFullScreen,
PipFlutterPlayerRoutePageBuilder? routePageBuilder,
Function(PipFlutterPlayerEvent)? eventListener,
PipFlutterPlayerSubtitlesConfiguration? subtitlesConfiguration,
PipFlutterPlayerControlsConfiguration? controlsConfiguration,
BoxFit? fit,
double? rotation,
Function(double visibilityFraction)? playerVisibilityChangedBehavior,
List<PipFlutterPlayerTranslations>? translations,
bool? autoDetectFullscreenDeviceOrientation,
bool? handleLifecycle,
bool? autoDispose,
bool? expandToFill,
bool? useRootNavigator,
}) {
return PipFlutterPlayerConfiguration(
aspectRatio: aspectRatio ?? this.aspectRatio,
autoPlay: autoPlay ?? this.autoPlay,
startAt: startAt ?? this.startAt,
looping: looping ?? this.looping,
fullScreenByDefault: fullScreenByDefault ?? this.fullScreenByDefault,
placeholder: placeholder ?? this.placeholder,
showPlaceholderUntilPlay:
showPlaceholderUntilPlay ?? this.showPlaceholderUntilPlay,
placeholderOnTop: placeholderOnTop ?? this.placeholderOnTop,
overlay: overlay ?? this.overlay,
errorBuilder: errorBuilder ?? this.errorBuilder,
allowedScreenSleep: allowedScreenSleep ?? this.allowedScreenSleep,
fullScreenAspectRatio:
fullScreenAspectRatio ?? this.fullScreenAspectRatio,
deviceOrientationsOnFullScreen:
deviceOrientationsOnFullScreen ?? this.deviceOrientationsOnFullScreen,
systemOverlaysAfterFullScreen:
systemOverlaysAfterFullScreen ?? this.systemOverlaysAfterFullScreen,
deviceOrientationsAfterFullScreen: deviceOrientationsAfterFullScreen ??
this.deviceOrientationsAfterFullScreen,
routePageBuilder: routePageBuilder ?? this.routePageBuilder,
eventListener: eventListener ?? this.eventListener,
subtitlesConfiguration:
subtitlesConfiguration ?? this.subtitlesConfiguration,
controlsConfiguration:
controlsConfiguration ?? this.controlsConfiguration,
fit: fit ?? this.fit,
rotation: rotation ?? this.rotation,
playerVisibilityChangedBehavior: playerVisibilityChangedBehavior ??
this.playerVisibilityChangedBehavior,
translations: translations ?? this.translations,
autoDetectFullscreenDeviceOrientation:
autoDetectFullscreenDeviceOrientation ??
this.autoDetectFullscreenDeviceOrientation,
handleLifecycle: handleLifecycle ?? this.handleLifecycle,
autoDispose: autoDispose ?? this.autoDispose,
expandToFill: expandToFill ?? this.expandToFill,
useRootNavigator: useRootNavigator ?? this.useRootNavigator,
);
}