selectLocationById method

Future<void> selectLocationById(
  1. String id, [
  2. MPSelectionBehavior? behavior
])

Selects a location based on a id string object.

Optionally apply a MPSelectionBehavior

Use deSelectLocation or send null instead of a MPLocation to un-select the location.

Implementation

Future<void> selectLocationById(String id, [MPSelectionBehavior? behavior]) {
  return MapcontrolPlatform.instance
      .selectLocationById(id, behavior ?? MPSelectionBehavior.DEFAULT);
}