fromName static method

WidgetTheme fromName(
  1. String? widgetType
)

Implementation

static WidgetTheme fromName(String? widgetType) {
  if (widgetType == null) {
    return const WidgetTheme();
  }

  return themeMap[_stripBrackets(widgetType)] ?? const WidgetTheme();
}