floors property

  1. @override
set floors (List<MPFloor>? floors)
override

Update the floors shown in the selector

Implementation

@override
set floors(List<MPFloor>? floors) {
  if (floors == null) {
    return;
  }
  List<MPFloor> list = List.from(floors);
  list.sort();
  setState(() {
    _floors.clear();
    _floors.addAll(list.reversed);
  });
}