RemovalOptions constructor

RemovalOptions({
  1. double? since,
  2. RemovalOptionsOriginTypes? originTypes,
  3. List<String>? origins,
  4. List<String>? excludeOrigins,
})

Implementation

RemovalOptions({
  /// Remove data accumulated on or after this date, represented in
  /// milliseconds since the epoch (accessible via the `getTime` method of the
  /// JavaScript `Date` object). If absent, defaults to 0 (which would remove
  /// all browsing data).
  double? since,

  /// An object whose properties specify which origin types ought to be
  /// cleared. If this object isn't specified, it defaults to clearing only
  /// "unprotected" origins. Please ensure that you _really_ want to remove
  /// application data before adding 'protectedWeb' or 'extensions'.
  RemovalOptionsOriginTypes? originTypes,

  /// When present, only data for origins in this list is deleted. Only
  /// supported for cookies, storage and cache. Cookies are cleared for the
  /// whole registrable domain.
  List<String>? origins,

  /// When present, data for origins in this list is excluded from deletion.
  /// Can't be used together with `origins`. Only supported for cookies,
  /// storage and cache.  Cookies are excluded for the whole registrable
  /// domain.
  List<String>? excludeOrigins,
}) : _wrapped = $js.RemovalOptions(
        since: since,
        originTypes: originTypes?.toJS,
        origins: origins?.toJSArray((e) => e),
        excludeOrigins: excludeOrigins?.toJSArray((e) => e),
      );