LeakNavigatorObserver class Null safety

NavigatorObserver

Inheritance

Constructors

LeakNavigatorObserver({int checkLeakDelay = _defaultCheckLeakDelay, 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.

Properties

checkLeakDelay int
final
hashCode int
The hash code for this object. [...]
read-only, inherited
The navigator that the observer is observing, if any.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldCheck ShouldAddedRoute?
final

Methods

didPop(Route route, Route? previousRoute) → void
The Navigator popped route. [...]
override
didPush(Route route, Route? previousRoute) → void
The Navigator pushed route. [...]
override
didRemove(Route route, Route? previousRoute) → void
The Navigator removed route. [...]
override
didReplace({Route? newRoute, Route? oldRoute}) → void
The Navigator replaced oldRoute with newRoute.
override
didStartUserGesture(Route route, Route? previousRoute) → void
The Navigator's routes are being moved by a user gesture. [...]
inherited
didStopUserGesture() → void
User gesture is no longer controlling the Navigator. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
watchObjectLeak(Object obj, String name) → dynamic
add obj into the group

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited