LeakNavigatorObserver constructor

LeakNavigatorObserver({
  1. int checkLeakDelay = _defaultCheckLeakDelay,
  2. ShouldAddedRoute? shouldCheck,
})

callback if 'null',the all route can added to LeakDetector. if not 'null', returns ‘true’, then this route will be added to the LeakDetector.

Implementation

LeakNavigatorObserver(
    {this.checkLeakDelay = _defaultCheckLeakDelay, this.shouldCheck});