onPrimal property
TextTheme
onPrimal
Implementation
TextTheme get onPrimal {
final hsv = HSVColor.fromColor(onPrimary.bodySmall!.color!);
final hs2 = HSVColor.fromColor(onAscent.bodySmall!.color!);
final color = HSVColor.lerp(hsv, hs2, .65) ?? hsv;
return onPrimary.apply(
displayColor: color.toColor(),
bodyColor: color.toColor(),
);
}