toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final sb = StringBuffer();
  sb.write('MQTTMessage of type ');
  sb.writeln(header.messageType.toString());
  sb.writeln(header.toString());
  return sb.toString();
}