openExternal static method

Future<void> openExternal(
  1. Uri uri
)

Opens uri outside the app; failures are ignored.

Implementation

static Future<void> openExternal(Uri uri) async {
  try {
    await launchUrl(uri, mode: LaunchMode.externalApplication);
  } on Object {
    // Unsupported scheme or no handler.
  }
}