openWithDataCellularAndAccessToken method

Future<Map> openWithDataCellularAndAccessToken(
  1. String url,
  2. String? accessToken,
  3. bool debug
)

Opens a URL with cellular data connection using an access token

Implementation

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