copyWith method

TencentPlayerValue copyWith({
  1. Duration? duration,
  2. Duration? position,
  3. Duration? playable,
  4. bool? isPlaying,
  5. String? errorDescription,
  6. Size? size,
  7. bool? isLoading,
  8. int? netSpeed,
  9. double? rate,
  10. int? bitrateIndex,
  11. int? orientation,
  12. int? degree,
  13. 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,
  );
}