checkError property

  1. @override
Future<bool> get checkError
override

Implementation

@override
Future<bool> get checkError async {
  bool ret = false;

  await Future.forEach<AppPermission>(repository.permissions,
      (appPermission) async {
    await appPermission.status.then((status) => ret |=
        appPermission.mandatory &&
            !(status == PermissionStatus.granted ||
                status == PermissionStatus.limited));
  });

  dev.log("checkError = $ret", name: "PermissionListViewModel");

  return ret;
}