selectLocation method

Future<void> selectLocation(
  1. FutureOr<MPLocation?> location, [
  2. MPSelectionBehavior? behavior
])

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);
}