operator < method Null safety

bool operator <(
  1. Level other
)

Implementation

bool operator <(Level other) => value < other.value;