rank property

int get rank

Higher rank wins when multiple plans apply.

Implementation

int get rank => switch (this) {
  enterprise => 3,
  team => 2,
  professional => 1,
  trial => 0,
  none => -1,
};