boxDecoration method

Niku boxDecoration(
  1. BoxDecoration boxDecoration
)

Apply BoxDecoration to widget

Equivalent to:

DecoratedBox(
  boxDecoration: input
)

Implementation

Niku boxDecoration(BoxDecoration boxDecoration) {
  _widget = DecoratedBox(
    child: _widget,
    decoration: boxDecoration,
  );

  return this;
}