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