onSuccess property
TextTheme
onSuccess
Implementation
TextTheme get onSuccess {
final colors = [
foreground.bodySmall?.color ?? Colors.white,
background.bodySmall?.color ?? Colors.grey,
];
const cc = Colors.white;
final color = success.bodySmall?.color ?? cc;
final onSuccess = success.apply(
displayColor: colors.farthestFrom(color),
bodyColor: colors.farthestFrom(color),
);
return onSuccess;
}