buildCustom method

  1. @override
FloatingActionButton 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
FloatingActionButton buildCustom({
  ChildWidgetBuilder? childBuilder,
  required BuildContext context,
  required JsonWidgetData data,
  Key? key,
}) {
  final model = createModel(
    childBuilder: childBuilder,
    data: data,
  );

  return FloatingActionButton(
    autofocus: model.autofocus,
    backgroundColor: model.backgroundColor,
    clipBehavior: model.clipBehavior,
    disabledElevation: model.disabledElevation,
    elevation: model.elevation,
    enableFeedback: model.enableFeedback,
    focusColor: model.focusColor,
    focusElevation: model.focusElevation,
    focusNode: model.focusNode,
    foregroundColor: model.foregroundColor,
    heroTag: model.heroTag,
    highlightElevation: model.highlightElevation,
    hoverColor: model.hoverColor,
    hoverElevation: model.hoverElevation,
    isExtended: model.isExtended,
    key: key,
    materialTapTargetSize: model.materialTapTargetSize,
    mini: model.mini,
    mouseCursor: model.mouseCursor,
    onPressed: model.onPressed,
    shape: model.shape,
    splashColor: model.splashColor,
    tooltip: model.tooltip,
    child: model.child?.build(
      childBuilder: childBuilder,
      context: context,
    ),
  );
}