styleBase method

Widget styleBase(
  1. NikuRaisedButton instance
)

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

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

Equivalent to

RaisedButton()

Example usage:

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

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

Implementation

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