borderWidth method
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;
}