requestPermission method Null safety

  1. @JSName('requestPermission')
Future<String> requestPermission()
@JSName('requestPermission')

Implementation

@JSName('requestPermission')
static Future<String> requestPermission() {
  var completer = new Completer<String>();
  _requestPermission((value) {
    completer.complete(value);
  });
  return completer.future;
}