copyWith method

Audio copyWith({
  1. String? path,
  2. String? package,
  3. AudioType? audioType,
  4. Metas? metas,
  5. double? playSpeed,
  6. Map<String, String>? headers,
  7. bool? cached,
  8. DrmConfiguration? drmConfiguration,
})

Implementation

Audio copyWith({
  String? path,
  String? package,
  AudioType? audioType,
  Metas? metas,
  double? playSpeed,
  Map<String, String>? headers,
  bool? cached,
  DrmConfiguration? drmConfiguration
}) {
  return Audio._(
    path: path ?? this.path,
    package: package ?? this.package,
    audioType: audioType ?? this.audioType,
    metas: metas ?? _metas,
    headers: headers ?? _networkHeaders,
    playSpeed: playSpeed ?? this.playSpeed,
    cached: cached ?? this.cached,
    drmConfiguration: drmConfiguration??this.drmConfiguration
  );
}