buildCustom method
Widget
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
override
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
Widget buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final theIcon = icon ?? getChild(data);
return IconButton(
alignment: alignment,
autofocus: autofocus,
color: color,
constraints: constraints,
disabledColor: disabledColor,
enableFeedback: enableFeedback,
focusColor: focusColor,
focusNode: focusNode,
highlightColor: highlightColor,
hoverColor: hoverColor,
icon: theIcon.build(childBuilder: childBuilder, context: context),
iconSize: iconSize,
isSelected: isSelected,
key: key,
mouseCursor: mouseCursor,
onPressed: onPressed,
padding: padding,
selectedIcon: selectedIcon?.build(
childBuilder: childBuilder,
context: context,
),
splashColor: splashColor,
splashRadius: splashRadius,
style: style,
tooltip: tooltip,
visualDensity: visualDensity,
);
}