styleBase method

Widget styleBase(
  1. NikuFlatButton instance
)

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

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

Equivalent to

FlatButton()

Example usage:

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

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

Implementation

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