setAutomaticallyWaitsToMinimizeStalling method Null safety

Future<void> setAutomaticallyWaitsToMinimizeStalling(
  1. bool automaticallyWaitsToMinimizeStalling
)

Sets automaticallyWaitsToMinimizeStalling for AVPlayer in iOS 10.0 or later, defaults to true. Has no effect on Android clients

Implementation

Future<void> setAutomaticallyWaitsToMinimizeStalling(
    final bool automaticallyWaitsToMinimizeStalling) async {
  if (_disposed) return;
  _automaticallyWaitsToMinimizeStalling =
      automaticallyWaitsToMinimizeStalling;
  await (await _platform).setAutomaticallyWaitsToMinimizeStalling(
      SetAutomaticallyWaitsToMinimizeStallingRequest(
          enabled: automaticallyWaitsToMinimizeStalling));
}