I come from a Kotlin background and I used to the fact that enums there implements Comparable, which allows me do something like below:
Given a enum
enum class Fruit{
APPLE,
BANANA,
ORANGE,
}
I could use the operators <, >, <= or >=, to compare any occurrence of this enum, like:
APPLE < BANANA -> true
ORANGE < BANANA -> false
I wonder if dart has the same by default or if I have to define custom operators to any enum I might need that.