openH5 static method

void openH5(
  1. String url
)

Implementation

static void openH5(String url) async {
  Uri uri = Uri.parse(url);
  if (!await launchUrl(uri, mode: LaunchMode.externalApplication)) {
    throw 'Could not launch $uri';
  }
}