copyWith method
PipFlutterPlayerDataSource
copyWith({
- PipFlutterPlayerDataSourceType? type,
- String? url,
- List<
int> ? bytes, - List<
PipFlutterPlayerSubtitlesSource> ? subtitles, - bool? liveStream,
- Map<
String, String> ? headers, - bool? useAsmsSubtitles,
- bool? useAsmsTracks,
- bool? useAsmsAudioTracks,
- Map<
String, String> ? resolutions, - PipFlutterPlayerCacheConfiguration? cacheConfiguration,
- PipFlutterPlayerNotificationConfiguration? notificationConfiguration = const PipFlutterPlayerNotificationConfiguration(showNotification: false),
- Duration? overriddenDuration,
- PipFlutterPlayerVideoFormat? videoFormat,
- String? videoExtension,
- PipFlutterPlayerDrmConfiguration? drmConfiguration,
- Widget? placeholder,
- PipFlutterPlayerBufferingConfiguration? bufferingConfiguration = const PipFlutterPlayerBufferingConfiguration(),
Implementation
PipFlutterPlayerDataSource copyWith({
PipFlutterPlayerDataSourceType? type,
String? url,
List<int>? bytes,
List<PipFlutterPlayerSubtitlesSource>? subtitles,
bool? liveStream,
Map<String, String>? headers,
bool? useAsmsSubtitles,
bool? useAsmsTracks,
bool? useAsmsAudioTracks,
Map<String, String>? resolutions,
PipFlutterPlayerCacheConfiguration? cacheConfiguration,
PipFlutterPlayerNotificationConfiguration? notificationConfiguration =
const PipFlutterPlayerNotificationConfiguration(
showNotification: false),
Duration? overriddenDuration,
PipFlutterPlayerVideoFormat? videoFormat,
String? videoExtension,
PipFlutterPlayerDrmConfiguration? drmConfiguration,
Widget? placeholder,
PipFlutterPlayerBufferingConfiguration? bufferingConfiguration =
const PipFlutterPlayerBufferingConfiguration(),
}) {
return PipFlutterPlayerDataSource(
type ?? this.type,
url ?? this.url,
bytes: bytes ?? this.bytes,
subtitles: subtitles ?? this.subtitles,
liveStream: liveStream ?? this.liveStream,
headers: headers ?? this.headers,
useAsmsSubtitles: useAsmsSubtitles ?? this.useAsmsSubtitles,
useAsmsTracks: useAsmsTracks ?? this.useAsmsTracks,
useAsmsAudioTracks: useAsmsAudioTracks ?? this.useAsmsAudioTracks,
resolutions: resolutions ?? this.resolutions,
cacheConfiguration: cacheConfiguration ?? this.cacheConfiguration,
notificationConfiguration:
notificationConfiguration ?? this.notificationConfiguration,
overriddenDuration: overriddenDuration ?? this.overriddenDuration,
videoFormat: videoFormat ?? this.videoFormat,
videoExtension: videoExtension ?? this.videoExtension,
drmConfiguration: drmConfiguration ?? this.drmConfiguration,
placeholder: placeholder ?? this.placeholder,
bufferingConfiguration:
bufferingConfiguration ?? this.bufferingConfiguration,
);
}