checkLte function
Asserts that value is less than or equal to limit.
Throws an AssertionError using label as a descriptive name for value.
Implementation
void checkLte(final int value, final int limit, [final Object? label]) {
if (value > limit) {
throw AssertionError(
'The ${label ?? 'value'} $value must be `less than or equal to` $limit.',
);
}
}