setBorderColor method

NikuOutlineButton setBorderColor({
  1. Color? color,
  2. Color? disabled,
  3. Color? highlighted,
})

Set Set border color when highlighted

Equivalent to

OutlineButton(
  borderSide: BorderSide(
    color: input
  ),
  disabledBorderColor: disabled,
  highlightedBorderColor: highlighted
);

Implementation

NikuOutlineButton setBorderColor(
    {Color? color, Color? disabled, Color? highlighted}) {
  this._borderSide = BorderSide(
      color: color ?? Colors.black12,
      width: this._borderSide?.width ?? 1,
      style: this._borderSide?.style ?? BorderStyle.solid);
  this._disabledBorderColor = color;
  this._highlightedBorderColor = color;

  return this;
}