error method Null safety
override
generate a error at the position of the parsable
Implementation
@override
Exception error(String message, {int from = 0, int to = 0}) {
return Exception(
message + ' at ' + toString(from: from, to: to, err: true));
}