copyWith method
PlayerState
copyWith(
{ - bool? playing,
- Duration? position,
- int? width,
- int? height,
- List<String>? subtitle,
- bool? buffering,
- Duration? buffer,
- Duration? duration,
- double? volume,
- double? rate,
- bool? completed,
})
Implementation
PlayerState copyWith({
bool? playing,
Duration? position,
int? width,
int? height,
List<String>? subtitle,
bool? buffering,
Duration? buffer,
Duration? duration,
// List<Media>? playlist,
double? volume,
double? rate,
bool? completed,
}) {
return PlayerState(
playing: playing ?? this.playing,
position: position ?? this.position,
width: width ?? this.width,
height: height ?? this.height,
subtitle: subtitle ?? this.subtitle,
buffering: buffering ?? this.buffering,
buffer: buffer ?? this.buffer,
duration: duration ?? this.duration,
// playlist: playlist ?? this.playlist,
volume: volume ?? this.volume,
rate: rate ?? this.rate,
completed: completed ?? this.completed,
);
}