DiagnosticCollection constructor
DiagnosticCollection({
- String? name,
- void delete()?,
- void clear()?,
- void forEach(
- dynamic (), [
- dynamic
- List<
Diagnostic> ? get()?, - bool has()?,
- 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),
);