parseAndLaunch static method

Future<void> parseAndLaunch(
  1. String uri
)

Parse and Launch the intent in format.

Equivalent of native android Intent.parseUri(URI, Intent.URI_INTENT_SCHEME) This works only on Android platforms.

Implementation

static Future<void> parseAndLaunch(String uri) async {
  if (!const LocalPlatform().isAndroid) {
    return;
  }

  await const MethodChannel(_kChannelName)
      .invokeMethod<void>('parseAndLaunch', {'uri': uri});
}