inkWell method

Widget inkWell(
  1. VoidCallback action, {
  2. BorderRadius? borderRadius,
})

Add tap handler with a material ripple effect.

Implementation

Widget inkWell(VoidCallback action, {BorderRadius? borderRadius}) {
  return Material(
    color: Colors.transparent,
    child: InkWell(
      onTap: action,
      borderRadius: borderRadius,
      child: this,
    ),
  );
}