Future<String> requestPermission()

Source

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