onclick method

void onclick()

Implementation

void onclick() {
  callback?.call(this);
  action?.call();
}