compareTo method
Compares two MPFloor objects based on their floorIndex
Implementation
@override
int compareTo(other) {
return _floorIndex != other._floorIndex
? (_floorIndex! < other._floorIndex! ? -1 : 1)
: 0;
}
Compares two MPFloor objects based on their floorIndex
@override
int compareTo(other) {
return _floorIndex != other._floorIndex
? (_floorIndex! < other._floorIndex! ? -1 : 1)
: 0;
}