build method
Apply styles and build FlatButton as Widget
Equivalent to
Container(
child: FlatButton()
)
Example usage:
build(context) {
return (
NikuFlatButton(Text("Applied Style"))
.px(40)
.py(20)
.bg(Colors.blue)
.my(8)
.build() // Colelct all style and build
)
}
Implementation
Widget build({Key? key}) => Container(
key: key,
margin: EdgeInsets.only(
top: this._mt, left: this._ml, bottom: this._mb, right: this._mr),
child: this.base());