DiagnosticCollection constructor

DiagnosticCollection({
  1. String? name,
  2. void delete(
    1. Uri
    )?,
  3. void clear()?,
  4. void forEach(
    1. dynamic (
      1. Uri,
      2. List<Diagnostic>,
      3. DiagnosticCollection
      ), [
    2. dynamic
    ])?,
  5. List<Diagnostic>? get(
    1. Uri
    )?,
  6. bool has(
    1. Uri
    )?,
  7. void dispose()?,
})

Implementation

factory DiagnosticCollection({
  _i2.String? name,
  void Function(_i3.Uri)? delete,
  void Function()? clear,
  void Function(
    _i2.dynamic Function(
      _i3.Uri,
      _i2.List<_i3.Diagnostic>,
      _i3.DiagnosticCollection,
    ), [
    _i2.dynamic,
  ])? forEach,
  _i2.List<_i3.Diagnostic>? Function(_i3.Uri)? get,
  _i2.bool Function(_i3.Uri)? has,
  void Function()? dispose,
}) =>
    DiagnosticCollection._(
      name: name,
      delete: delete == null ? null : _i5.allowInterop(delete),
      clear: clear == null ? null : _i5.allowInterop(clear),
      forEach: forEach == null ? null : _i5.allowInterop(forEach),
      get: get == null
          ? null
          : _i5.allowInterop((p0) => () => get(p0) ?? _i6.undefined),
      has: has == null ? null : _i5.allowInterop(has),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );