toString method

  1. @override
String toString()
override

Generates a string representation of the MediaMessage.

Implementation

@override
String toString() {
  return 'MediaMessage{caption: $caption, attachment: $attachment}';
}