goTo method

Future<void> goTo(
  1. FutureOr<MPEntity<DynamicObjectId>?> entity
)

Focus the map on the given MPEntity.

Examples of classes of type MPEntity are: MPVenue, MPBuilding, MPBuilding, MPLocation.

Implementation

Future<void> goTo(FutureOr<MPEntity?> entity) async {
  return MapcontrolPlatform.instance.goTo(await entity);
}