Skip to content

Commit

Permalink
Initialize PatrolLogWriter in class initializer list
Browse files Browse the repository at this point in the history
  • Loading branch information
pdenert committed Nov 5, 2024
1 parent 84c52d1 commit 5b5b966
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5b5b966

Please sign in to comment.