requestPermission 静态方法
- @JSName('requestPermission')
实现
@JSName('requestPermission')
static Future<String> requestPermission() {
var completer = new Completer<String>();
_requestPermission((value) {
completer.complete(value);
});
return completer.future;
}