canPush property Null safety

bool canPush

Whether the channel can send messages.

Implementation

bool get canPush =>
    socket.isConnected && _state == PhoenixChannelState.joined;