styleBase method

Widget styleBase(
  1. NikuOutlineButton instance
)

Apply existing NikuOutlineButton's property to current style and build only base

? By using this method, margin won't be applied

Equivalent to

OutlineButton()

Example usage:

final style = NikuOutlineButton(null)
  .px(40)
  .py(20)
  .bg(Colors.blue)

build(context) {
  return (
    NikuOutlineButton(Text("Applied Style"))
      .styleBase(style) // Will have style and built
  )
}

Implementation

Widget styleBase(NikuOutlineButton instance) => this.apply(instance).base();