openUrl static method

Future<void> openUrl(
  1. String url
)

Implementation

static Future<void> openUrl(String url) async {
  try {
    await _platform.invokeMethod(
      'openUrl',
      <String, String>{'webUrl': url},
    );
  } on PlatformException catch (e) {
    GetIt.I
        .get<Talker>()
        .error("Failed to open webUrl in browser: '${e.message}'");
  }
}