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