requestPermissions method Null safety

Future<bool?> requestPermissions(
  1. {bool sound = false,
  2. bool alert = false,
  3. bool badge = false}
)

Requests the specified permission(s) from user and returns current permission status.

Implementation

Future<bool?> requestPermissions({
  bool sound = false,
  bool alert = false,
  bool badge = false,
}) =>
    _channel.invokeMethod<bool?>('requestPermissions', <String, bool>{
      'sound': sound,
      'alert': alert,
      'badge': badge,
    });