Skip to content

High performance self-hosted photo and video management solution.

293 B
Raw Blame
import 'package:immich_mobile/data/server/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;
  }
}