Throws an IllegalArgumentException if the value is false.
IllegalArgumentException
value
Unit require({required Boolean value, Any Function()? lazyMessage}) { if (!value) throw Exception('IllegalStateException'); }