backgroundColor method

Niku backgroundColor(
  1. Color color
)

Apply background to widget

Equivalent to:

ColoredBox(
  color: input
)

Implementation

Niku backgroundColor(Color color) {
  _widget = ColoredBox(
    color: color,
    child: _widget,
  );

  return this;
}