canInvite property

bool get canInvite

The level required to invite a user.

Implementation

bool get canInvite =>
    (getState(EventTypes.RoomPowerLevels)?.content.tryGet<int>('invite') ??
        0) <=
    ownPowerLevel;