check function
Assert a condition, throwing AssertionError with message on failure.
Implementation
void check(bool condition, String message) {
if (!condition) {
throw AssertionError(message);
}
}
Assert a condition, throwing AssertionError with message on failure.
void check(bool condition, String message) {
if (!condition) {
throw AssertionError(message);
}
}