check function

void check(
  1. Boolean value, {
  2. Any lazyMessage()?,
})

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');
}