addEntranceLocation method

bool addEntranceLocation({
  1. required Coordinates coordinates,
  2. required EntranceLocationType type,
})

Add new entrance location.

Parameters

  • IN coordinates - Coordinates of the entrance location.
  • IN type - Type of the entrance location.

Returns

  • bool - true if the entrance location was added successfully, false otherwise.

Throws

  • An exception if it fails.

Implementation

bool addEntranceLocation({
  required final Coordinates coordinates,
  required final EntranceLocationType type,
}) {
  final OperationResult resultString = objectMethod(
    _id,
    'EntranceLocations',
    'addEntranceLocation',
    args: <String, dynamic>{
      'entranceType': type.id,
      'coordinates': coordinates,
    },
  );

  return resultString['result'];
}