onTap method

VoidCallback? onTap()

Implementation

VoidCallback? onTap() {
  return isEnable ? onPressed : null;
}