primaryTextOnBackgroundColor property

Color primaryTextOnBackgroundColor

Implementation

Color get primaryTextOnBackgroundColor {
  if (_primaryTextOnBackgroundColor != null) {
    return _primaryTextOnBackgroundColor!;
  }
  final merged =
      Color.lerp(primaryBackgroundColor, secondaryBackgroundColor, 0.5)!;
  final palette = CorePalette.of(merged.value);

  final tone = isLight ? 10 : 100;
  return Color(palette.neutralVariant.get(tone));
}