when static method

void when(
  1. bool condition,
  2. String message
)

Implementation

static void when(bool condition, String message) {
  if (condition) {
    info(message);
  }
}