setFloorSelector method

  1. @override
Future<void> setFloorSelector(
  1. MPFloorSelectorInterface? floorSelector,
  2. bool internal
)
override

Implementation

@override
Future<void> setFloorSelector(
    MPFloorSelectorInterface? floorSelector, bool internal) {
  _floorSelector = floorSelector;
  _floorSelector?.onFloorSelectionChangedListener = onFloorSelectionChanged;
  if (internal) {
    return Future(() => null);
  } else {
    return mapControlMethodChannel.invokeMethod("MPC_setFloorSelector", {
      "isAutoFloorChangeEnabled": floorSelector?.isAutoFloorChangeEnabled
    });
  }
}