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