IgnoredLeaksSet constructor

const IgnoredLeaksSet({
  1. Map<String, int?> byClass = const {},
  2. bool ignoreAll = false,
})

Creates instance of IgnoredLeaksSet.

Use this constructor to provide both byClass and ignoreAll in case when you want to preserve list of classes, while temporarily turning off the entire leak tracking, so that when you turn it back on for a subset of tests with copyWith(ignoreAll: false), the list of classes is set to needed value.

Implementation

const IgnoredLeaksSet({this.byClass = const {}, this.ignoreAll = false});