onBackground property
Color
onBackground
The Material Design "On" color contrasting with this theme's background Color, i.e., Colors.black or Colors.white.
Implementation
Color get onBackground => backgroundColor.contrastColor;