copyWith method
TencentPlayerValue
copyWith(
{ - Duration? duration,
- Duration? position,
- Duration? playable,
- bool? isPlaying,
- String? errorDescription,
- Size? size,
- bool? isLoading,
- int? netSpeed,
- double? rate,
- int? bitrateIndex,
- int? orientation,
- int? degree,
- int? eventCode,
})
Implementation
TencentPlayerValue copyWith({
Duration? duration,
Duration? position,
Duration? playable,
bool? isPlaying,
String? errorDescription,
Size? size,
bool? isLoading,
int? netSpeed,
double? rate,
int? bitrateIndex,
int? orientation,
int? degree,
int? eventCode,
}) {
return TencentPlayerValue(
duration: duration ?? this.duration,
position: position ?? this.position,
playable: playable ?? this.playable,
isPlaying: isPlaying ?? this.isPlaying,
errorDescription: errorDescription ?? this.errorDescription,
size: size ?? this.size,
isLoading: isLoading ?? this.isLoading,
netSpeed: netSpeed ?? this.netSpeed,
rate: rate ?? this.rate,
bitrateIndex: bitrateIndex ?? this.bitrateIndex,
orientation: orientation ?? this.orientation,
degree: degree ?? this.degree,
eventCode: eventCode ?? this.eventCode,
);
}