isLeaving method Null safety

bool isLeaving()

Implementation

bool isLeaving() {
  return _state == ChannelStates.leaving;
}