operator > method

bool operator >(
  1. TokenCheckResult? other
)

Implementation

bool operator >(TokenCheckResult? other) {
  if (this == other) return false;
  switch (this) {
    case TokenCheckResult.equals:
      return true;
    case TokenCheckResult.startsWith:
      return other != TokenCheckResult.equals;
    case TokenCheckResult.contains:
      return other == TokenCheckResult.none;
    case TokenCheckResult.none:
      return false;
    default:
      return false;
  }
}