bw method
Apply styling to border width
Implementation
NikuButton bw(double width) {
this._side.update(
base: BorderSide(
color: this._side.base?.color ?? Colors.black12,
width: width,
style: this._side.base?.style ?? BorderStyle.solid,
),
disabled: BorderSide(
color: this._side.disabled?.color ?? Colors.black12,
width: width,
style: this._side.disabled?.style ?? BorderStyle.solid,
),
dragged: BorderSide(
color: this._side.dragged?.color ?? Colors.black12,
width: width,
style: this._side.dragged?.style ?? BorderStyle.solid,
),
error: BorderSide(
color: this._side.error?.color ?? Colors.black12,
width: width,
style: this._side.error?.style ?? BorderStyle.solid,
),
focused: BorderSide(
color: this._side.focused?.color ?? Colors.black12,
width: width,
style: this._side.focused?.style ?? BorderStyle.solid,
),
hovered: BorderSide(
color: this._side.hovered?.color ?? Colors.black12,
width: width,
style: this._side.hovered?.style ?? BorderStyle.solid,
),
pressed: BorderSide(
color: this._side.pressed?.color ?? Colors.black12,
width: width,
style: this._side.pressed?.style ?? BorderStyle.solid,
),
selected: BorderSide(
color: this._side.selected?.color ?? Colors.black12,
width: width,
style: this._side.selected?.style ?? BorderStyle.solid,
),
);
return this;
}