canKick property

bool get canKick

Whether the client is able to kick this user.

Implementation

bool get canKick =>
    [Membership.join, Membership.invite].contains(membership) &&
    room.canKick &&
    powerLevel < room.ownPowerLevel;