style method

Widget style(
  1. NikuText instance
)

Apply existing NikuText's property to current style and build

Example usage:

final style = NikuText(null)
  .color(Colors.blue)
  .fontSize(21)
  .bold()

build(context) {
  return (
    NikuText("Applied Style")
      .style(style) // Will have blue color and font size of 21 and build
  )
}

Implementation

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