style method

Widget style(
  1. NikuOutlineButton instance
)

Apply existing NikuOutlineButton's property to current style and build

Equivalent to

Container(
  child: OutlineButton()
)

Example usage:

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

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

Implementation

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