powerLevels property
Returns the power levels from all users for this room or null if not given.
Implementation
@Deprecated('Use `getPowerLevelByUserId(String userId)` instead')
Map<String, int>? get powerLevels {
final powerLevelState =
getState(EventTypes.RoomPowerLevels)?.content['users'];
return (powerLevelState is Map<String, int>) ? powerLevelState : null;
}