bs method

NikuButton bs(
  1. BorderStyle style
)

Apply BorderStyle to border

Implementation

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

  return this;
}