leak_tracker_flutter_testing library
Classes
- IgnoredLeaks
 - The total set of ignored leaks.
 - InstrumentedDisposable
 - Example of instrumented disposable.
 - LeakingClass
 - Example of leaking class.
 - LeakReport
 - Leak information for troubleshooting.
 - Leaks
 - Detailed information about found leaks.
 - LeakTestCase
 - A test case to verify leak detection.
 - LeakTesting
 - leak_tracker settings for tests.
 - LeakTracking
 - Provides leak tracking functionality.
 - StatelessLeakingWidget
 - Example of stateless leaking widget.
 
Enums
Constants
- isLeakFree → const Matcher
 - Checks if the leak collection is empty.
 
Properties
- areCreateAndDispose ↔ Matcher
 - 
  Checks if 
Iterable<ObjectEvent>contains two events, firstObjectCreatedand thenObjectDisposed.getter/setter pair - 
  leakTestingSettingsCases
  → Map<
String, LeakTesting Function(LeakTesting settings)>  - 
  Test cases for leak detection settings.
  final
 
Functions
- 
  maybeSetupLeakTrackingForTest(
LeakTesting? settings, String testDescription) → void  - Makes sure leak tracking is set up for a test.
 - 
  maybeTearDownLeakTrackingForAll(
) → Future< void>  - Should be invoked after execution of all tests to report found leaks.
 - 
  maybeTearDownLeakTrackingForTest(
) → void  - If leak tracking is enabled, stops it and declares notDisposed objects as leaks.
 - 
  memoryEvents(
FutureOr< void> callback(), Type type) → Future<List< ObjectEvent> > - 
  Invokes 
callbackand collects events dispatched to FlutterMemoryAllocations.instance fortype. 
Typedefs
- 
    PumpWidgetsCallback
      = Future<
void> Function(Widget widget, [Duration? duration]) - 
    Signature of 
pumpWidgetmethod. - 
    RunAsyncCallback<
T> = Future< T?> Function(Future<T> callback()) - 
    Signature of 
runAsyncmethod. - 
    TestCallback
      = Future<
void> Function(PumpWidgetsCallback? pumpWidgets, RunAsyncCallback? runAsync) - Callback for test body, with access to Flutter specific test methods.