onConnected property
Stream
get
onConnected
A stream that emits events when the chat service is connected.
This stream listens for events indicating that the chat service has established a connection. Each event contains information about the connection state. Use this stream to update your UI or perform actions upon chat service connection.
Usage example:
Mirrorfly.onConnected.listen((connectedEventData) {
// Handle the event when the platform is connected
print("Platform connected: $connectedEventData");
});
Implementation
static Stream<dynamic> get onConnected =>
FlyChatFlutterPlatform.instance.onConnected;