checkArgument function
Throws an ArgumentError if the given expression
is false
.
Implementation
void checkArgument(bool expression, {message}) {
if (!expression) {
throw new ArgumentError(_resolveMessage(message, null));
}
}
Throws an ArgumentError if the given expression
is false
.
void checkArgument(bool expression, {message}) {
if (!expression) {
throw new ArgumentError(_resolveMessage(message, null));
}
}