IgnoredLeaksSet class

Set of classes to ignore during leak tracking.

Annotations

Constructors

IgnoredLeaksSet({Map<String, int?> byClass = const {}, bool ignoreAll = false})
Creates instance of IgnoredLeaksSet.
const
IgnoredLeaksSet.byClass(Map<String, int?> byClass)
const
IgnoredLeaksSet.ignore()
const

Properties

byClass Map<String, int?>
Classes to ignore during leak tracking.
final
hashCode int
The hash code for this object.
no setteroverride
ignoreAll bool
If true, all leaks are ignored, otherwise byClass defines what is ignored.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Map<String, int?>? byClass, bool? ignoreAll}) IgnoredLeaksSet
Creates a copy of this object with the given fields replaced with the new values.
isIgnored(String className) bool
Returns true if the class should be ignored.
merge(IgnoredLeaksSet? other) IgnoredLeaksSet
Merges two ignore lists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
track(List<String> list) IgnoredLeaksSet
Removes the classes from ignore lists.

Operators

operator ==(Object other) bool
The equality operator.
override