getValue method
Implementation
Color getValue(BuildContext context) {
final theme = OudsTheme.of(context);
switch (this) {
case OudsColoredBoxColor.brandPrimary:
return theme.colorsScheme.surfaceBrandPrimary;
case OudsColoredBoxColor.statusAccentEmphasized:
return theme.colorsScheme.surfaceStatusAccentEmphasized;
case OudsColoredBoxColor.statusAccentMuted:
return theme.colorsScheme.surfaceStatusAccentMuted;
case OudsColoredBoxColor.statusInfoEmphasized:
return theme.colorsScheme.surfaceStatusInfoEmphasized;
case OudsColoredBoxColor.statusInfoMuted:
return theme.colorsScheme.surfaceStatusInfoMuted;
case OudsColoredBoxColor.statusNegativeEmphasized:
return theme.colorsScheme.surfaceStatusNegativeEmphasized;
case OudsColoredBoxColor.statusNegativeMuted:
return theme.colorsScheme.surfaceStatusNegativeMuted;
case OudsColoredBoxColor.statusNeutralEmphasized:
return theme.colorsScheme.surfaceStatusNeutralEmphasized;
case OudsColoredBoxColor.statusNeutralMuted:
return theme.colorsScheme.surfaceStatusNeutralMuted;
case OudsColoredBoxColor.statusPositiveEmphasized:
return theme.colorsScheme.surfaceStatusPositiveEmphasized;
case OudsColoredBoxColor.statusPositiveMuted:
return theme.colorsScheme.surfaceStatusPositiveMuted;
case OudsColoredBoxColor.statusWarningEmphasized:
return theme.colorsScheme.surfaceStatusWarningEmphasized;
case OudsColoredBoxColor.statusWarningMuted:
return theme.colorsScheme.surfaceStatusWarningMuted;
}
}