buildCustom method

  1. @override
InkWell buildCustom({
  1. ChildWidgetBuilder? childBuilder,
  2. required BuildContext context,
  3. required JsonWidgetData data,
  4. Key? key,
})

Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.

Implementation

@override
InkWell buildCustom({
  ChildWidgetBuilder? childBuilder,
  required BuildContext context,
  required JsonWidgetData data,
  Key? key,
}) {
  final model = createModel(
    childBuilder: childBuilder,
    data: data,
  );

  return InkWell(
    autofocus: model.autofocus,
    borderRadius: model.borderRadius,
    canRequestFocus: model.canRequestFocus,
    customBorder: model.customBorder,
    enableFeedback: model.enableFeedback,
    excludeFromSemantics: model.excludeFromSemantics,
    focusColor: model.focusColor,
    focusNode: model.focusNode,
    highlightColor: model.highlightColor,
    hoverColor: model.hoverColor,
    hoverDuration: model.hoverDuration,
    key: key,
    mouseCursor: model.mouseCursor,
    onDoubleTap: model.onDoubleTap,
    onFocusChange: model.onFocusChange,
    onHighlightChanged: model.onHighlightChanged,
    onHover: model.onHover,
    onLongPress: model.onLongPress,
    onSecondaryTap: model.onSecondaryTap,
    onSecondaryTapCancel: model.onSecondaryTapCancel,
    onSecondaryTapDown: model.onSecondaryTapDown,
    onSecondaryTapUp: model.onSecondaryTapUp,
    onTap: model.onTap,
    onTapCancel: model.onTapCancel,
    onTapDown: model.onTapDown,
    onTapUp: model.onTapUp,
    overlayColor: model.overlayColor,
    radius: model.radius,
    splashColor: model.splashColor,
    splashFactory: model.splashFactory,
    statesController: model.statesController,
    child: model.child?.build(
      childBuilder: childBuilder,
      context: context,
    ),
  );
}