itThrows function
Calls callback and returns true if it throws.
Implementation
bool itThrows(void Function() callback) {
try {
callback();
return false;
} catch (_) {
return true;
}
}
Calls callback and returns true if it throws.
bool itThrows(void Function() callback) {
try {
callback();
return false;
} catch (_) {
return true;
}
}