onAccent property
The Material Design "On" color contrasting with this theme's accent Color, i.e., Colors.black or Colors.white.
Implementation
@Deprecated(
'Use `onSecondary` instead. This feature was deprecated after v0.3.2',
)
Color get onAccent => accentColor.contrastColor;