fetchById static method

Future<Study?> fetchById(
  1. String studyId
)

Fetches a study by its ID. Returns null if not found.

Implementation

static Future<Study?> fetchById(String studyId) async {
  try {
    return await SupabaseQuery.getById<Study>(studyId);
  } catch (error, stacktrace) {
    SupabaseQuery.catchSupabaseException(error, stacktrace);
    rethrow;
  }
}