Widget onTap(Function() onTap, {bool inkWell = true}) { if (inkWell) { return InkWell( onTap: onTap, child: this, ); } return GestureDetector( onTap: onTap, child: this, ); }