bs method

NikuButton bs(
  1. BorderStyle style
)

Apply BorderStyle to border

Implementation

NikuButton bs(BorderStyle style) {
  _side.update(
    base: BorderSide(
      width: _side._base?.width ?? 1,
      style: style,
      color: _side._base?.color ?? Colors.black12,
    ),
    disabled: BorderSide(
      width: _side._disabled?.width ?? 1,
      style: style,
      color: _side._disabled?.color ?? Colors.black12,
    ),
    dragged: BorderSide(
      width: _side._dragged?.width ?? 1,
      style: style,
      color: _side._dragged?.color ?? Colors.black12,
    ),
    error: BorderSide(
      width: _side._error?.width ?? 1,
      style: style,
      color: _side._error?.color ?? Colors.black12,
    ),
    focused: BorderSide(
      width: _side._focused?.width ?? 1,
      style: style,
      color: _side._focused?.color ?? Colors.black12,
    ),
    hovered: BorderSide(
      width: _side._hovered?.width ?? 1,
      style: style,
      color: _side._hovered?.color ?? Colors.black12,
    ),
    pressed: BorderSide(
      width: _side._pressed?.width ?? 1,
      style: style,
      color: _side._pressed?.color ?? Colors.black12,
    ),
    selected: BorderSide(
      width: _side._selected?.width ?? 1,
      style: style,
      color: _side._selected?.color ?? Colors.black12,
    ),
  );

  return this;
}