checkState static method
Throws a StateError with message unless condition holds.
Implementation
static void checkState(bool condition, Object? message) {
if (!condition) {
throw StateError('$message');
}
}
Throws a StateError with message unless condition holds.
static void checkState(bool condition, Object? message) {
if (!condition) {
throw StateError('$message');
}
}