bgColor method

Text bgColor(
  1. Color backgroundColor
)

Sets text background color

Example:

Text('Hello').bgColor(Colors.yellow)

Implementation

Text bgColor(Color backgroundColor) =>
    _copyWith(style: TextStyle(backgroundColor: backgroundColor));