inkWell method

Widget inkWell({
  1. Key? key,
  2. dynamic onTap()?,
  3. double? borderRadius,
})

Implementation

Widget inkWell({
  Key? key,
  Function()? onTap,
  double? borderRadius,
}) =>
    Material(
      color: Colors.transparent,
      child: Ink(
        child: InkWell(
          borderRadius: borderRadius != null
              ? BorderRadius.all(
                  Radius.circular(borderRadius),
                )
              : null,
          onTap: onTap ?? () {},
          child: this,
        ),
      ),
    );