checkCondition method

void checkCondition(
  1. bool condition, [
  2. String message = ''
])

Implementation

void checkCondition(bool condition, [String message = '']) {
  if (!condition) {
    throw StateError(message);
  }
}