check function
Throws an IllegalStateException with the result of calling lazyMessage if the value is false.
Implementation
Unit check(Boolean value, {Any Function()? lazyMessage}) {
if (!value) throw Exception('IllegalStateException');
}
Throws an IllegalStateException with the result of calling lazyMessage if the value is false.
Unit check(Boolean value, {Any Function()? lazyMessage}) {
if (!value) throw Exception('IllegalStateException');
}