backgroundColor method

Container backgroundColor(
  1. Color color
)

A modifier that sets its widget's background color

Example:

Text('Black text')
    .backgroundColor(Colors.white)

Implementation

Container backgroundColor(Color color) {
  return _rebase(color: color);
}