build method
Apply existing NikuIconButton's property to current style and build
Example usage:
build(context) {
return (
NikuIconButton(Icons(Icon.edit))
.iconSize(24)
.p(20)
.highlightColor(Colors.blue.withOpacity(.125))
.build()
)
}
Implementation
IconButton build({Key? key}) => IconButton(
icon: this._icon,
onPressed: this._onPressed,
iconSize: this._iconSize,
visualDensity: this._visualDensity,
padding: EdgeInsets.only(
top: this._pt, left: this._pl, bottom: this._pb, right: this._pr),
alignment: this._alignment,
splashRadius: this._splashRadius,
color: this._color,
focusColor: this._focusColor,
hoverColor: this._hoverColor,
highlightColor: this._highlightColor,
splashColor: this._splashColor,
disabledColor: this._disabledColor,
mouseCursor: this._mouseCursor,
focusNode: this._focusNode,
autofocus: this._autofocus,
tooltip: this._tooltip,
enableFeedback: this._enableFeedback,
constraints: this._constraints,
);