of static method
- BuildContext context
Implementation
static AvailableTheme of(BuildContext context) {
String name = ThemeProvider.themeOf(context).id;
for (AvailableTheme e in AvailableTheme.export) {
if (e.id == name) {
return e;
}
}
return AvailableTheme.export[0];
}