borderWidth method

NikuButton borderWidth({
  1. double base = 1,
  2. double disabled = 1,
  3. double dragged = 1,
  4. double error = 1,
  5. double focused = 1,
  6. double hovered = 1,
  7. double pressed = 1,
  8. double selected = 1,
})

Apply styling to border width

Implementation

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

  return this;
}