throwErrorIfNoPoints method
Implementation
void throwErrorIfNoPoints(String? method) {
if (hasPoints()) {
return;
}
if (method == null) {
throw "The mobject doesn't have any points";
} else {
throw "Cannot call Mobject.$method , the mobject doesn't have any points";
}
}