mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
* enable border radius, switch exp, const constructor * regenerate provider * more formatting --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
12 lines
277 B
Dart
12 lines
277 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 const NoResponseDtoError();
|
|
return response;
|
|
}
|
|
}
|