compareTo method

  1. @override
int compareTo(
  1. MPFloor other
)
override

Compares two MPFloor objects based on their floorIndex

Implementation

@override
int compareTo(other) {
  return _floorIndex != other._floorIndex
      ? (_floorIndex! < other._floorIndex! ? -1 : 1)
      : 0;
}