onChannelCreate method

void onChannelCreate(
  1. dynamic callback(
    1. Channel channel
    )
)

callback will be called when the CHANNEL_CREATE event has been recieved

Implementation

void onChannelCreate(Function(Channel channel) callback) =>
    _onChannelCreate = callback;