launchWithHttpScheme method

Future<bool> launchWithHttpScheme()

Parses the youtube uri URL with scheme https:// and delegates handling of it to the underlying platform.

Implementation

Future<bool> launchWithHttpScheme() async {
  if (await canLaunch(uri.uriHttpsScheme)) {
    return launch(
      uri.uriHttpsScheme,
      forceSafariVC: false,
    );
  }
  return false;
}