getColor method
Implementation
Color getColor(BuildContext context) {
final theme = OudsTheme.of(context);
switch (this) {
case OudsDividerColor.muted:
return theme.colorScheme(context).borderMuted;
case OudsDividerColor.emphasized:
return theme.colorScheme(context).borderEmphasized;
case OudsDividerColor.brandPrimary:
return theme.colorScheme(context).borderBrandPrimary;
case OudsDividerColor.onBrandPrimary:
return theme.colorScheme(context).borderOnBrandPrimary;
case OudsDividerColor.alwaysBlack:
return theme.colorScheme(context).alwaysBlack;
case OudsDividerColor.alwaysOnBlack:
return theme.colorScheme(context).alwaysOnBlack;
case OudsDividerColor.alwaysWhite:
return theme.colorScheme(context).alwaysWhite;
case OudsDividerColor.alwaysOnWhite:
return theme.colorScheme(context).alwaysOnWhite;
default:
return theme.colorScheme(context).borderDefault;
}
}