open property

({void Function(String method, Object url) $1, void Function(String method, Object url, bool async, [String? username, String? password]) $2}) get open

Overload accessor: $1, $2

Implementation

({
  /// Sets the request method, request URL, and synchronous flag.
  ///
  ///  Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
  ///
  ///  Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
  ///
  ///  Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
  ///
  ///  [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
  void Function(
    _i2.String method,
    _i2.Object url,
  ) $1,

  /// Sets the request method, request URL, and synchronous flag.
  ///
  /// Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
  ///
  /// Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
  ///
  /// Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
  ///
  /// [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
  void Function(
    _i2.String method,
    _i2.Object url,
    _i2.bool async, [
    _i2.String? username,
    _i2.String? password,
  ]) $2,
}) get open => (
      $1: _open$1,
      $2: _open$2,
    );