bc method

NikuButton bc(
  1. Color color
)

Apply styling to border color

Implementation

NikuButton bc(Color color) {
  this._side.update(
        base: BorderSide(
          width: this._side.base?.width ?? 1,
          color: color,
          style: this._side.base?.style ?? BorderStyle.solid,
        ),
        disabled: BorderSide(
          width: this._side.disabled?.width ?? 1,
          color: color,
          style: this._side.disabled?.style ?? BorderStyle.solid,
        ),
        dragged: BorderSide(
          width: this._side.dragged?.width ?? 1,
          color: color,
          style: this._side.dragged?.style ?? BorderStyle.solid,
        ),
        error: BorderSide(
          width: this._side.error?.width ?? 1,
          color: color,
          style: this._side.error?.style ?? BorderStyle.solid,
        ),
        focused: BorderSide(
          width: this._side.focused?.width ?? 1,
          color: color,
          style: this._side.focused?.style ?? BorderStyle.solid,
        ),
        hovered: BorderSide(
          width: this._side.hovered?.width ?? 1,
          color: color,
          style: this._side.hovered?.style ?? BorderStyle.solid,
        ),
        pressed: BorderSide(
          width: this._side.pressed?.width ?? 1,
          color: color,
          style: this._side.pressed?.style ?? BorderStyle.solid,
        ),
        selected: BorderSide(
          width: this._side.selected?.width ?? 1,
          color: color,
          style: this._side.selected?.style ?? BorderStyle.solid,
        ),
      );

  return this;
}