copyWith method

AndroidPlaybackInfo copyWith({
  1. AndroidVolumeControlType? volumeControlType,
  2. int? maxVolume,
  3. int? volume,
})

Creates a copy of this object with fields replaced.

Implementation

AndroidPlaybackInfo copyWith({
  AndroidVolumeControlType? volumeControlType,
  int? maxVolume,
  int? volume,
}) =>
    RemoteAndroidPlaybackInfo(
      volumeControlType: volumeControlType ?? this.volumeControlType,
      maxVolume: maxVolume ?? this.maxVolume,
      volume: volume ?? this.volume,
    );