removeTheme static method
- String name
Removes a custom theme.
Throws Exception if attempting to remove 'light' or 'dark'.
Implementation
static void removeTheme(String name) {
if (name.toLowerCase() == 'light' || name.toLowerCase() == 'dark') {
throw Exception("Can't remove default themes");
}
_instance._themes.remove(name);
}