tableName function

String tableName(
  1. Type cls
)

Implementation

String tableName(Type cls) => switch (cls) {
  == Study => Study.tableName,
  == StudySubject => StudySubject.tableName,
  == SubjectProgress => SubjectProgress.tableName,
  == AppConfig => AppConfig.tableName,
  == Repo => Repo.tableName,
  == StudyInvite => StudyInvite.tableName,
  == StudyUUser => StudyUUser.tableName,
  == StudyFitbitCredentials => StudyFitbitCredentials.tableName,
  _ => throw ArgumentError('$cls is not a supported Supabase type'),
};