toString method

String toString()
override

Method to print the error message

Implementation

String toString() => "InvalidArgumentException: $_message";