apply method

Apply existing NikuOutlineButton's property to current style

Example usage:

final padding = NikuOutlineButton(null)
  .px(40)
  .py(20)

final blueBackground = NikuOutlineButton(null)
  .bg(Colors.blue)

build(context) {
  return (
    NikuOutlineButton(Text("Applied Style"))
      .apply(padding) // Will have padding
      .apply(blueBackground) // Will have blue background
      .rounded(8)
      .build() // Will combine all style
  )
}

Implementation

NikuOutlineButton apply(NikuOutlineButton instance) => this.set(
      onPressed: this._onPressed,
      onLongPressed: this._onLongPressed,
      pt: instance._pt,
      pl: instance._pl,
      pb: instance._pb,
      pr: instance._pr,
      color: instance._color,
      focusColor: instance._focusColor,
      hoverColor: instance._hoverColor,
      textColor: instance._textColor,
      highlightColor: instance._highlightColor,
      splashColor: instance._splashColor,
      clipBehavior: instance._clipBehavior,
      autofocus: instance._autofocus,
      shape: instance._shape,
      buttonTextTheme: instance._buttonTextTheme,
      borderSide: instance._borderSide,
      highlightedBorderColor: instance._highlightedBorderColor,
      disabledBorderColor: instance._disabledBorderColor,
      mt: instance._mt,
      ml: instance._ml,
      mb: instance._mb,
      mr: instance._mr,
    );