backgroundColor method

Widget backgroundColor(
  1. Color color
)

Changes the TextStyle.backgroundColor for this widget.

Implementation

Widget backgroundColor(Color color) {
  return DefaultTextStyle(
    style: TextStyle(backgroundColor: color),
    child: this,
  );
}