onTapFunction method

Future onTapFunction()

Implementation

Future onTapFunction() async {
  if (onPressed != null) {
    onPressed!();
  }
  if (onTap != null) {
    onTap!();
  }
  bool result = false;
  if (onTapAsync != null) {
    await nsgFutureProgressAndException(func: () async {
      result = await onTapAsync!();
    });
  }

  if (result && onAfterTapAsync != null) {
    onAfterTapAsync!();
  }
}