style method
Apply existing NikuIconButton's property to current style and build
Example usage:
final style = NikuIconButton()
.iconSize(24)
.p(20)
.highlightColor(Colors.blue.withOpacity(.125))
build(context) {
return (
NikuIconButton(Icons(Icon.edit))
.style(style) // Will have iconSize apply and build
)
}
Implementation
IconButton style(NikuIconButton instance) => this.apply(instance).build();