fetchById static method
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;
}
}