canParse static method

bool canParse(
  1. Object url, [
  2. Object? base
])

https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static

Creates a DOMString containing a URL representing the object given in the parameter. The URL lifetime is tied to the document in the window on which it was created. The new object URL represents the specified File object or Blob object. https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL_static

Revokes an object URL previously created using URL.createObjectURL(). MDN reference

Returns a Boolean indicating if the given string is a well-formed URL.

Implementation

// static String createObjectURL(Object object) =>
//     internal.createObjectURL(object);

/// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL_static
///
/// Revokes an object URL previously created using URL.createObjectURL().
// static void revokeObjectURL(String url) => internal.revokeObjectURL(url);

/// [MDN reference](https://developer.mozilla.org/en-US/docs/Web/API/URL/canParse_static)
///
/// Returns a Boolean indicating if the given string is a well-formed URL.
static bool canParse(Object url, [Object? base]) =>
    helpers.canParse(url, base);