logIf method

void logIf(
  1. bool condition
)

logIf: Logs the object if the condition is true.

Implementation

void logIf(bool condition) {
  if (condition) {
    log;
  }
}