getFromContext function
Implementation
NomoDropDownButtonThemeData getFromContext(
BuildContext context,
NomoDropDownButton widget,
) {
final globalColorTheme =
NomoTheme.maybeOf(context)?.componentColors.dropDownButtonColor ??
const NomoDropDownButtonColorData();
const globalSizingTheme = NomoDropDownButtonSizingData();
const globalConstants = NomoDropDownButtonConstants();
final themeOverride = NomoDropDownButtonThemeOverride.maybeOf(context);
final themeData = NomoDropDownButtonThemeData.from(
globalColorTheme, globalSizingTheme, globalConstants)
.copyWith(themeOverride);
return NomoDropDownButtonThemeData(
dropdownColor: widget.dropdownColor ?? themeData.dropdownColor,
);
}