yesno method

void yesno(
  1. VoidCallback? yesCallback,
  2. VoidCallback? noCallback
)

Implementation

void yesno(VoidCallback? yesCallback, VoidCallback? noCallback) {
  if (this) {
    yesCallback?.call();
  } else {
    noCallback?.call();
  }
}