canChangePowerLevel property

bool get canChangePowerLevel

Whether the client is allowed to change the power level of this user. Please be aware that you can only set the power level to at least your own!

Implementation

bool get canChangePowerLevel =>
    room.canChangePowerLevel && powerLevel < room.ownPowerLevel;