throwIfNot function

void throwIfNot(
  1. bool condition,
  2. Object error
)

Implementation

void throwIfNot(bool condition, Object error) {
  if (!condition) throw error;
}