StatelessLeakingWidget constructor

StatelessLeakingWidget({
  1. Key? key,
  2. bool notGCed = true,
  3. bool notDisposed = true,
})

Implementation

StatelessLeakingWidget({
  super.key,
  this.notGCed = true,
  this.notDisposed = true,
}) {
  if (notGCed) {
    _notGcedStorage.add(InstrumentedDisposable()..dispose());
  }
  if (notDisposed) {
    // ignore: unused_local_variable
    final notDisposedObject = InstrumentedDisposable();
  }
}