File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ custom_lint:
1515 exclude :
1616 - class_name : Exclude
1717 method_name : avoidNumberOfParameters
18- - method_name : avoidNumberOfParameters
18+ - method_name : avoidNumberOfParameters
19+ - method_name : copyWith
1920 - function_lines_of_code :
2021 max_lines : 50
2122 - avoid_non_null_assertion
Original file line number Diff line number Diff line change @@ -18,3 +18,28 @@ class Exclude {
1818 return a + b + c;
1919 }
2020}
21+
22+ class UserDto {
23+ final String email;
24+ final String firstName;
25+ final String id;
26+
27+ const UserDto ({
28+ required this .email,
29+ required this .firstName,
30+ required this .id,
31+ });
32+
33+ /// Excluded by method_name
34+ UserDto copyWith ({
35+ String ? email,
36+ String ? firstName,
37+ String ? id,
38+ }) {
39+ return UserDto (
40+ email: email ?? this .email,
41+ firstName: firstName ?? this .firstName,
42+ id: id ?? this .id,
43+ );
44+ }
45+ }
You can’t perform that action at this time.
0 commit comments