LeakDetector class Null safety

泄漏检测主要工具类

Constructors

LeakDetector()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onEventStream Stream<DetectorEvent>
read-only
onLeakedStream Stream<LeakedInfo>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addWatchObject(Object obj, String group) → dynamic
group 认为可以在一块释放的对象组,一般在一个State中想监听的对象
ensureReleaseAsync(String? group, {int delay = 0}) → dynamic
Start to detect whether there is a memory leak
init({int maxRetainingPath = 300}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

maxRetainingPath int?
VmService.getRetainingPathlimit
read / write