requestPermission static method Null safety

Future<String> requestPermission()

Implementation

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