toInkWell method

Widget toInkWell({
  1. bool hasEffect = false,
  2. VoidCallback? onTap,
})

Implementation

Widget toInkWell({bool hasEffect = false, VoidCallback? onTap}) => Material(
      color: Colors.transparent,
      child: InkWell(
        onTap: onTap,
        splashColor: !hasEffect ? Colors.transparent : null,
        highlightColor: !hasEffect ? Colors.transparent : null,
        child: this,
      ),
    );