notifyIf method

void notifyIf(
  1. bool condition
)

Implementation

void notifyIf(bool condition) {
  if (condition) notify();
}