Skip to content

Commit

Permalink
chore: Regenerate and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Nys authored and dnys1 committed May 11, 2023
1 parent b25265b commit ce27f1b
Show file tree
Hide file tree
Showing 41 changed files with 731 additions and 706 deletions.
10 changes: 6 additions & 4 deletions canaries/lib/models/ModelProvider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ class ModelProvider implements ModelProviderInterface {
List<ModelSchema> customTypeSchemas = [];

static ModelProvider get instance => _instance;

ModelType getModelTypeByModelName(String modelName) {
switch(modelName) {
switch (modelName) {
case "Todo":
return Todo.classType;
default:
throw Exception("Failed to find model in model provider for model name: " + modelName);
throw Exception(
"Failed to find model in model provider for model name: " +
modelName);
}
}
}
}
Loading

0 comments on commit ce27f1b

Please sign in to comment.