From 477c77aa3190bf9c657ec0346de58cf9a959f0fd Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Sun, 17 Nov 2024 16:32:44 -0600 Subject: [PATCH] Fix unused param in a private ctor lint --- test/random_test.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/random_test.dart b/test/random_test.dart index 60b197d..85cea4a 100644 --- a/test/random_test.dart +++ b/test/random_test.dart @@ -17,8 +17,7 @@ import 'test_utils.dart'; /// inputs (boolean, null, strings, or numbers) to modify the YAML and assert /// that the change produced was expected. void main() { - const seed = 0; - final generator = _Generator(seed: seed); + final generator = _Generator(maxDepth: 5); const roundsOfTesting = 40; const modificationsPerRound = 1000; @@ -66,7 +65,7 @@ class _Generator { final int maxDepth; // ignore: unused_element - _Generator({int? seed, this.maxDepth = 5}) : r = Random(seed ?? 42); + _Generator({int seed = 0, required this.maxDepth}) : r = Random(seed); int nextInt([int max = maxInt]) => r.nextInt(max);