From 5b5b966ca7df91491480837346ae00aca322fd83 Mon Sep 17 00:00:00 2001 From: pdenert Date: Tue, 5 Nov 2024 13:13:24 +0100 Subject: [PATCH] Initialize PatrolLogWriter in class initializer list --- .../patrol_finders/lib/src/custom_finders/patrol_tester.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart index cabcf5b9f..2bc0d285f 100644 --- a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart +++ b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart @@ -120,13 +120,13 @@ class PatrolTester { PatrolTester({ required this.tester, required this.config, - }); + }) : _patrolLog = PatrolLogWriter(); /// Global configuration of this tester. final PatrolTesterConfig config; /// Logs a message to the patrol log. - final PatrolLogWriter _patrolLog = PatrolLogWriter(); + final PatrolLogWriter _patrolLog; /// Flutter's widget tester that this [PatrolTester] wraps. final WidgetTester tester;