Dart API Reference
dart:core
RangeError
checkNotNegative
checkNotNegative
method
Check that an integer value isn't negative.
void
checkNotNegative
(
int
value
,
[
String
name
,
String
message
]
)
Check that an integer value isn't negative.
Throws if the value is negative.