LeakTrackingConfig.passive constructor

LeakTrackingConfig.passive({
  1. int numberOfGcCycles = defaultNumberOfGcCycles,
  2. Duration disposalTime = const Duration(),
  3. int? maxRequestsForRetainingPath = 10,
})

The leak_tracker:

  • will not auto check leaks
  • when leak checking is invoked, will not send notifications
  • will set disposalTime to zero, to assume the methods dispose are completed at the moment of leak checking

Implementation

LeakTrackingConfig.passive({
  int numberOfGcCycles = defaultNumberOfGcCycles,
  Duration disposalTime = const Duration(),
  int? maxRequestsForRetainingPath = 10,
}) : this(
        stdoutLeaks: false,
        notifyDevTools: false,
        checkPeriod: null,
        disposalTime: disposalTime,
        numberOfGcCycles: numberOfGcCycles,
        maxRequestsForRetainingPath: maxRequestsForRetainingPath,
      );