inkWell method

Widget inkWell({
  1. Key? key,
  2. Color? color,
  3. double? borderRadius,
  4. dynamic onTap()?,
  5. dynamic onLongPress()?,
})

墨水纹

Implementation

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