openWithDataCellular method

Future<Map> openWithDataCellular(
  1. String url,
  2. bool debug
)

Opens a URL with cellular data connection

Implementation

Future<Map> openWithDataCellular(String url, bool debug) async {
  try {
    final response = await _channel
        .invokeMethod('openWithDataCellular', {'url': url, 'debug': debug});
    return _transformResponse(response);
  } on PlatformException catch (e) {
    return {'error': 'sdk_error', 'error_description': e.message};
  }
}