Min Idzelis 2ed3820127 lite
2025-04-16 23:00:22 +00:00

12 lines
271 B
Dart

import 'package:immich_mobile/constants/errors.dart';
class ApiRepository {
const ApiRepository();
Future<T> checkNull<T>(Future<T?> future) async {
final response = await future;
if (response == null) throw NoResponseDtoError();
return response;
}
}