setPreferredPeakBitRate method Null safety

Future<void> setPreferredPeakBitRate(
  1. double preferredPeakBitRate
)

Sets preferredPeakBitRate on iOS/macOS, defaults to true.

Implementation

Future<void> setPreferredPeakBitRate(
    final double preferredPeakBitRate) async {
  if (_disposed) return;
  _preferredPeakBitRate = preferredPeakBitRate;
  await (await _platform).setPreferredPeakBitRate(
      SetPreferredPeakBitRateRequest(bitRate: preferredPeakBitRate));
}