requestAudioFocus method Null safety

Future<bool> requestAudioFocus(
  1. AndroidAudioFocusRequest focusRequest
)

Implementation

Future<bool> requestAudioFocus(AndroidAudioFocusRequest focusRequest) async {
  _onAudioFocusChanged = focusRequest.onAudioFocusChanged;
  return (await _channel
      .invokeMethod<bool>('requestAudioFocus', [focusRequest.toJson()]))!;
}