withBackground method

TextStyle withBackground(
  1. Color color
)

Applies a background color to the text style

Implementation

TextStyle withBackground(Color color) => copyWith(backgroundColor: color);