copyWith method

AppleAudioSessionConfiguration copyWith({
  1. ValueOrAbsent<AppleAudioCategory?> category = const ValueOrAbsent.absent(),
  2. ValueOrAbsent<Set<AppleAudioCategoryOption>?> categoryOptions = const ValueOrAbsent.absent(),
  3. ValueOrAbsent<AppleAudioMode?> mode = const ValueOrAbsent.absent(),
})

Implementation

AppleAudioSessionConfiguration copyWith({
  ValueOrAbsent<AppleAudioCategory?> category = const ValueOrAbsent.absent(),
  ValueOrAbsent<Set<AppleAudioCategoryOption>?> categoryOptions = const ValueOrAbsent.absent(),
  ValueOrAbsent<AppleAudioMode?> mode = const ValueOrAbsent.absent(),
}) =>
    AppleAudioSessionConfiguration(
      category: category.valueOr(this.category),
      categoryOptions: categoryOptions.valueOr(this.categoryOptions),
      mode: mode.valueOr(this.mode),
    );