onTap method

void onTap()

Implementation

void onTap() {
  if (onClick is Function) {
    onClick!();
  }
}