requestPermission static method

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

Implementation

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