getTheme method
Implementation
ThemeData getTheme(dynamic key, T control) {
key = Parse.name(key);
key = themes.keys
.firstWhere((item) => Parse.name(item) == key, orElse: () => initTheme);
if (themes.containsKey(key)) {
return themes[key]!(control);
}
return themes.values.first(control);
}