onUpdate property

void Function(ConnectionStateCallback)? onUpdate
final

A callback to notify client about new connection state. returns ConnectionState enum & an optional error description.

Implementation

final void Function(ConnectionStateCallback)? onUpdate;