enable lint prefer_null_aware_operators (#32686)
This commit is contained in:
parent
242e2f5cf7
commit
41b9abdc32
@ -142,6 +142,7 @@ linter:
|
|||||||
- prefer_is_not_empty
|
- prefer_is_not_empty
|
||||||
- prefer_iterable_whereType
|
- prefer_iterable_whereType
|
||||||
# - prefer_mixin # https://github.com/dart-lang/language/issues/32
|
# - prefer_mixin # https://github.com/dart-lang/language/issues/32
|
||||||
|
- prefer_null_aware_operators
|
||||||
- prefer_single_quotes
|
- prefer_single_quotes
|
||||||
- prefer_typing_uninitialized_variables
|
- prefer_typing_uninitialized_variables
|
||||||
- prefer_void_to_null
|
- prefer_void_to_null
|
||||||
|
@ -252,9 +252,7 @@ class SnippetGenerator {
|
|||||||
metadata.addAll(<String, Object>{
|
metadata.addAll(<String, Object>{
|
||||||
'id': id,
|
'id': id,
|
||||||
'file': path.basename(outputFile.path),
|
'file': path.basename(outputFile.path),
|
||||||
'description': description != null
|
'description': description?.mergedContent,
|
||||||
? description.mergedContent
|
|
||||||
: null,
|
|
||||||
});
|
});
|
||||||
metadataFile.writeAsStringSync(jsonEncoder.convert(metadata));
|
metadataFile.writeAsStringSync(jsonEncoder.convert(metadata));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user