supportsLaunchMode function

Future<bool> supportsLaunchMode(
  1. LaunchMode mode
)

Returns true if mode is supported by the current platform implementation.

Calling launchUrl with an unsupported mode will fall back to a supported mode, so calling this method is only necessary for cases where the caller needs to know which mode will be used.

Implementation

Future<bool> supportsLaunchMode(LaunchMode mode) {
  return UrlLauncherPlatform.instance.supportsMode(convertLaunchMode(mode));
}