1. override
String toString()

Returns a string representation of this object.

Source

@override
String toString() {
  if (message == null)
    return 'Error while parsing constraint or expression';
  return 'Error: "$message" while trying to parse constraint or expression';
}