isIgnored method
Returns true if the class is ignored.
If leakType
is null, returns true if the class is ignored for all
leak types.
Implementation
bool isIgnored(String className, {LeakType? leakType}) {
switch (leakType) {
case null:
return experimentalNotGCed.isIgnored(className) &&
notDisposed.isIgnored(className);
case LeakType.notDisposed:
return notDisposed.isIgnored(className);
case LeakType.notGCed:
case LeakType.gcedLate:
return experimentalNotGCed.isIgnored(className);
}
}