getFromContext function
Implementation
NomoDividerThemeData getFromContext(
BuildContext context,
NomoDivider widget,
) {
final globalColorTheme =
NomoTheme.maybeOf(context)?.componentColors.dividerColor ??
const NomoDividerColorData();
final globalSizingTheme =
NomoTheme.maybeOf(context)?.componentSizes.dividerSizing ??
const NomoDividerSizingData();
const globalConstants = NomoDividerConstants();
final themeOverride = NomoDividerThemeOverride.maybeOf(context);
final themeData = NomoDividerThemeData.from(
globalColorTheme, globalSizingTheme, globalConstants)
.copyWith(themeOverride);
return NomoDividerThemeData(
color: widget.color ?? themeData.color,
crossAxisSize: widget.crossAxisSize ?? themeData.crossAxisSize,
crossAxisSpacing: widget.crossAxisSpacing ?? themeData.crossAxisSpacing,
);
}