onConnectionStateChanged property

  1. @Deprecated('Use onConnectionStateChanged2 instead of.')
void onConnectionStateChanged=(dynamic onConnectionStateChanged(int state, int reason)?)

Implementation

@Deprecated('Use onConnectionStateChanged2 instead of.')
set onConnectionStateChanged(
    Function(int state, int reason)? onConnectionStateChanged) {
  onConnectionStateChanged2 = onConnectionStateChanged == null
      ? null
      : (RtmConnectionState state, RtmConnectionChangeReason reason) {
          onConnectionStateChanged(state.toJson(), reason.toJson());
        };
}