Skip to content

Commit

Permalink
Update lib/lints/avoid_late_keyword/models/avoid_late_keyword_paramet…
Browse files Browse the repository at this point in the history
…ers.dart

Co-authored-by: Yurii Prykhodko <[email protected]>
  • Loading branch information
maxxlab and yurii-prykhodko-solid authored Nov 16, 2023
1 parent f639d91 commit 850cfaa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class AvoidLateKeywordParameters {
factory AvoidLateKeywordParameters.fromJson(Map<String, Object?> json) =>
AvoidLateKeywordParameters(
allowInitialized: json['allow_initialized'] as bool? ?? false,
ignoredTypes: json.containsKey('ignored_types') &&
json['ignored_types'] is Iterable
? List<String>.from(json['ignored_types'] as Iterable)
: <String>['AnimationController'],
ignoredTypes: json['ignored_types'] as List<String>?,
);
}

0 comments on commit 850cfaa

Please sign in to comment.