of static method
- String name
Returns the theme with the given name. If the theme is not found, it will return the first theme in the list
Implementation
static AvailableTheme of(String name) {
for (AvailableTheme theme in export) {
if (theme.id == name) {
return theme;
}
}
Debug().warn(
"Failed to search for a theme $name under AvaliabelTheme#of(String)");
return export[0];
}