requestAll method

  1. @override
Future<Map<Permission, PermissionStatus>> requestAll()
override

Implementation

@override
Future<Map<Permission, PermissionStatus>> requestAll() async {
  Map<Permission, PermissionStatus> ret = {};
  await Future.forEach<AppPermission>(permissions, (permission) async {
    PermissionStatus status = await permission.request();
    ret.addAll({permission.permission: status});
  });
  return ret;
}