getForegroundColor method
Implementation
Color getForegroundColor(FlumeTheme theme) {
switch (state) {
case ValidationState.success:
return theme.colors.onSuccess;
case ValidationState.warning:
return theme.colors.onWarning;
case ValidationState.error:
return theme.colors.onError;
}
}