copyWith method

PlayerState copyWith({
  1. bool? playing,
  2. Duration? position,
  3. int? width,
  4. int? height,
  5. List<String>? subtitle,
  6. bool? buffering,
  7. Duration? buffer,
  8. Duration? duration,
  9. double? volume,
  10. double? rate,
  11. 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,
  );
}