onConnectionState property

void Function(ConnectionState state, String? errorMessage)? onConnectionState
getter/setter pair

Implementation

void Function(ConnectionState state, String? errorMessage)? onConnectionState;