[demo] fixes

This commit is contained in:
2019-11-19 17:51:30 +03:00
parent 7a5b32b251
commit a768e75cec
3 changed files with 8 additions and 8 deletions

View File

@@ -65,8 +65,7 @@ abstract KeyType<T>(String) {
instances.set(key, instance);
return instance;
} else {
return null;
//throw 'Factory for "${key}" not found';
throw 'Factory for "${key}" not found';
}
}