From df2d1e2362db9c1cfece58e0cf769d75f247d33e Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Fri, 13 Oct 2023 16:26:25 -0700 Subject: [PATCH] Update leak_tracking_for_tests.dart --- .../lib/src/leak_tracking_for_tests.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart b/pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart index 58502417..c3a8dc96 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart @@ -148,8 +148,10 @@ class LeakTrackingForTestsSettings { this.onLeaks = _emptyLeakHandler, }); + /// Creates a copy of this object with [paused] set to true. LeakTrackingForTestsSettings copyPaused() => copyWith(paused: true); + /// Creates a copy of this object with [paused] set to false. LeakTrackingForTestsSettings copyStarted() => copyWith(paused: false); /// Creates a copy of this object with the given fields replaced