isTrue static method

void isTrue(
  1. bool condition,
  2. String what
)

condition holds.

Implementation

static void isTrue(bool condition, String what) {
  if (!condition) {
    throw ConformanceFailure(what);
  }
}