setConnectionStateListener method Null safety

void setConnectionStateListener(
  1. {dynamic listener(
    1. String
    )?}
)

Set the listener for connection state of the SDK. Will be fired when room is connected, disconnected, reconnecting, waiting for host to let inm etc

Implementation

void setConnectionStateListener({Function(String)? listener}){
  _connectionStateListener = listener;
}