style method

Widget style(
  1. NikuFlatButton instance
)

Apply existing NikuFlatButton's property to current style and build

Equivalent to

Container(
  child: FlatButton()
)

Example usage:

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

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

Implementation

Widget style(NikuFlatButton instance) => this.apply(instance).build();