onDisconnected property

Stream get onDisconnected

A stream that emits events when the chat service is disconnected.

This stream listens for events indicating that the chat service has lost connection. Each event contains information about the disconnection state. Use this stream to update your UI or perform actions upon chat service disconnection.

Usage example:

Mirrorfly.onDisconnected.listen((disconnectedEventData) {
  // Handle the event when the platform is disconnected
  print("Platform disconnected: $disconnectedEventData");
});

Implementation

static Stream<dynamic> get onDisconnected =>
    FlyChatFlutterPlatform.instance.onDisconnected;