disconnect method

  1. @override
Future<void> disconnect()
override

Implementation

@override
Future<void> disconnect() async {
  await _mqttMessageSubscription?.cancel();
  mqtt.disconnect();
}