Skip to content

Commit bdbfca1

Browse files
author
shaark
committed
issue-167. fixed null check
1 parent 23c62a8 commit bdbfca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/lints/avoid_returning_widgets/models/avoid_returning_widgets_parameters.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AvoidReturningWidgetsParameters {
1515
factory AvoidReturningWidgetsParameters.fromJson(Map<String, dynamic> json) {
1616
return AvoidReturningWidgetsParameters(
1717
exclude: ExcludeParameters.fromJson(
18-
excludeList: json['exclude'] as Iterable,
18+
excludeList: json['exclude'] as Iterable? ?? [],
1919
),
2020
);
2121
}

0 commit comments

Comments
 (0)