launchWithYoutubeScheme method

Future<bool> launchWithYoutubeScheme()

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

This might open youtube app.

Implementation

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