onBackground property

  1. @override
DynamicColor get onBackground
override

Implementation

@override
DynamicColor get onBackground {
  final color2025 = onSurface.copyWith(
    name: "on_background",
    tone: (scheme) =>
        scheme.platform == .watch ? 100.0 : onSurface.getTone(scheme),
  );
  return super.onBackground.extendSpecVersion(.spec2025, color2025);
}