enable lint prefer_void_to_null (#23174)

* enable lint prefer_void_to_null

* replace last Null by void
This commit is contained in:
Alexandre Ardhuin
2018-10-17 08:09:29 +02:00
committed by GitHub
parent 7a63fac0a2
commit 936dea28da
12 changed files with 16 additions and 15 deletions

View File

@@ -327,7 +327,7 @@ void processBlock(Line line, List<String> block, List<Section> sections) {
sections.add(Section(line, 'dynamic expression$_expressionId = ', block.toList(), ';'));
} else if (block.first.startsWith('await ')) {
_expressionId += 1;
sections.add(Section(line, 'Future<Null> expression$_expressionId() async { ', block.toList(), ' }'));
sections.add(Section(line, 'Future<void> expression$_expressionId() async { ', block.toList(), ' }'));
} else if (block.first.startsWith('class ') || block.first.startsWith('enum ')) {
sections.add(Section(line, null, block.toList(), null));
} else if ((block.first.startsWith('_') || block.first.startsWith('final ')) && block.first.contains(' = ')) {