show method

Future<void> show({
  1. MapApp? map,
  2. Map<String, String>? extra,
})

Shows the marker in a map app.

If map is null, tries eligible defaultMaps in order. Explicit selection never switches providers. Retries require a confirmed failed handoff; blocked or unknown outcomes stop with MapLaunchException.

  • extra Additional query parameters merged with constructor extra; values from this call take precedence on conflict.

Implementation

Future<void> show({MapApp? map, Map<String, String>? extra}) async {
  final mergedExtra = {...?this.extra, ...?extra};
  if (map == null) requireScopedExtras(mergedExtra);
  await showMapRequest(
    map: map,
    prepare: (candidate) => _prepare(candidate, mergedExtra),
  );
}