selectLocation method
Selects a location based on a MPLocation object.
Optionally apply a MPSelectionBehavior
Use deSelectLocation() or send null instead of a MPLocation to un-select the location.
Implementation
Future<void> selectLocation(FutureOr<MPLocation?> location,
[MPSelectionBehavior? behavior]) async {
return MapcontrolPlatform.instance.selectLocation(
await location, behavior ?? MPSelectionBehavior.DEFAULT);
}