secondaryTextOnBackgroundColor property

Color secondaryTextOnBackgroundColor

Implementation

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

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