browser static method

Future<bool> browser({
  1. String url = "",
  2. OpenMode mode = OpenMode.platformDefault,
})

open content to browser

Implementation

static Future<bool> browser(
    {String url = "", OpenMode mode = OpenMode.platformDefault}) async {
  try {
    return await launchUrl(Uri.parse(url), mode: _getLaunchMode(mode));
  } catch (e) {
    log(e.toString());
    return false;
  }
}