requestPermission 静态方法

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

实现

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