diff --git a/packages/orm/angel_orm_test/lib/src/models/user.g.dart b/packages/orm/angel_orm_test/lib/src/models/user.g.dart index 0e30467b..6913702e 100644 --- a/packages/orm/angel_orm_test/lib/src/models/user.g.dart +++ b/packages/orm/angel_orm_test/lib/src/models/user.g.dart @@ -143,13 +143,13 @@ class UserQuery extends Query { @override get(QueryExecutor executor) { return super.get(executor).then((result) { - return result.fold>([], (out, model) { - var idx = out.indexWhere((m) => m!.id == model!.id); + return result.fold>([], (out, model) { + var idx = out.indexWhere((m) => m.id == model!.id); if (idx == -1) { - return out..add(model); + return out..add(model!); } else { - var l = out[idx]!; + var l = out[idx]; return out ..[idx] = l.copyWith( roles: List<_Role>.from(l.roles)..addAll(model!.roles)); @@ -161,13 +161,13 @@ class UserQuery extends Query { @override update(QueryExecutor executor) { return super.update(executor).then((result) { - return result.fold>([], (out, model) { - var idx = out.indexWhere((m) => m!.id == model!.id); + return result.fold>([], (out, model) { + var idx = out.indexWhere((m) => m.id == model!.id); if (idx == -1) { - return out..add(model); + return out..add(model!); } else { - var l = out[idx]!; + var l = out[idx]; return out ..[idx] = l.copyWith( roles: List<_Role>.from(l.roles)..addAll(model!.roles)); @@ -179,13 +179,13 @@ class UserQuery extends Query { @override delete(QueryExecutor executor) { return super.delete(executor).then((result) { - return result.fold>([], (out, model) { - var idx = out.indexWhere((m) => m!.id == model!.id); + return result.fold>([], (out, model) { + var idx = out.indexWhere((m) => m.id == model!.id); if (idx == -1) { - return out..add(model); + return out..add(model!); } else { - var l = out[idx]!; + var l = out[idx]; return out ..[idx] = l.copyWith( roles: List<_Role>.from(l.roles)..addAll(model!.roles));