openLinkUri static method

Future<bool> openLinkUri(
  1. Uri uri, {
  2. bool preferNonBrowserApp = false,
})

Opens a raw URI (e.g. comgooglemaps://, google.navigation:) without rewriting. Use for app-specific schemes that start navigation etc.

Implementation

static Future<bool> openLinkUri(
  Uri uri, {
  bool preferNonBrowserApp = false,
}) async => await launchUrl(
  uri,
  mode: preferNonBrowserApp
      ? LaunchMode.externalNonBrowserApplication
      : LaunchMode.externalApplication,
);