backgroundColor property Null safety
final
The color to use as the background for the text.
If background is specified, this value must be null. The
backgroundColor property is shorthand for
background: Paint()..color = backgroundColor
.
In merge, apply, and lerp, conflicts between backgroundColor and background specification are resolved in background's favor - i.e. if background is specified in one place, it will dominate color in another.
Implementation
final Color? backgroundColor;