accentForRole method
- PrismSemantic role
Solid accent color for a semantic role — use when a filled chip,
dot or badge needs to stand out against the base surface.
Implementation
Color accentForRole(PrismSemantic role) {
switch (role) {
case PrismSemantic.success:
return success;
case PrismSemantic.warning:
return warning;
case PrismSemantic.error:
return error;
case PrismSemantic.info:
return info;
}
}