toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final sb = StringBuffer();
  sb.writeln('Payload: Subscription [{${subscriptions.length}}]');
  subscriptions.forEach((String key, MqttQos value) {
    sb.writeln('{{ Topic={$key}, Qos={$value} }}');
  });
  return sb.toString();
}