Skip to content

Commit 89ae715

Browse files
author
Illia Aihistov
committed
test: simplify freezed class definitions in avoid_unused_parameters test cases
1 parent 62599c3 commit 89ae715

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

test/lints/avoid_unused_parameters/avoid_unused_parameters_rule_test.dart

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,7 @@ const freezed = Object();
403403
404404
@freezed
405405
class Test {
406-
const factory Test({
407-
bool test,
408-
}) = _Test;
409-
}
410-
411-
class _Test implements Test {
412-
final bool? test;
413-
const _Test({this.test});
406+
const Test(int unusedParameter);
414407
}
415408
''');
416409
}
@@ -434,14 +427,7 @@ const freezed = Object();
434427
435428
@freezed
436429
class Test {
437-
const factory Test({
438-
bool test,
439-
}) = _Test;
440-
}
441-
442-
class _Test implements Test {
443-
final bool? test;
444-
const _Test({this.test});
430+
const Test(int unusedParameter);
445431
}
446432
447433
class Meta {
@@ -451,14 +437,7 @@ const meta = Meta();
451437
452438
@meta.freezed
453439
class TestWithPrefix {
454-
const factory TestWithPrefix({
455-
bool test,
456-
}) = _TestWithPrefix;
457-
}
458-
459-
class _TestWithPrefix implements TestWithPrefix {
460-
final bool? test;
461-
const _TestWithPrefix({this.test});
440+
const TestWithPrefix(int unusedParameter);
462441
}
463442
464443
void excludeMethod(String s) {

0 commit comments

Comments
 (0)