inkWell static method

WxListTileBuilder inkWell({
  1. Color? hoverColor,
  2. Color? highlightColor,
  3. Color? splashColor,
  4. InteractiveInkFeatureFactory? splashFactory,
  5. BorderRadius? borderRadius,
})

Implementation

static WxListTileBuilder inkWell({
  Color? hoverColor,
  Color? highlightColor,
  Color? splashColor,
  InteractiveInkFeatureFactory? splashFactory,
  BorderRadius? borderRadius,
}) {
  return (context, widget) {
    if (widget.onTap != null) {
      return InkWell(
        hoverColor: hoverColor,
        highlightColor: highlightColor,
        splashColor: splashColor,
        splashFactory: splashFactory,
        borderRadius: borderRadius,
        onTap: widget.onTap,
        child: widget.child,
      );
    }
    return widget.child;
  };
}