Skip to content

High performance self-hosted photo and video management solution.

276 B
Raw Blame
import 'package:immich_mobile/data/server/errors.dart';

abstract class ApiRepository {
  Future<T> checkNull<T>(Future<T?> future) async {
    final response = await future;
    if (response == null) {
      throw const NoResponseDtoError();
    }
    return response;
  }
}