copyWith method

AudioPcm copyWith({
  1. Object? rate = unsetCopyWithValue,
})

Returns a copy of this AudioPcm with the given fields replaced.

Pass null for rate to clear the existing value.

Implementation

AudioPcm copyWith({Object? rate = unsetCopyWithValue}) => AudioPcm(
  rate: identical(rate, unsetCopyWithValue) ? this.rate : rate as int?,
);