toString method

  1. @override
String toString()
override

Override default toString method to return message.

Implementation

@override
String toString() {
  return message;
}