Fix the sample analyzer to analyze dart:ui and make the analyzer null safe (#80742)

This commit is contained in:
Greg Spencer
2021-04-22 19:14:02 +00:00
committed by GitHub
parent a84ac2ec2c
commit b33c7891c1
4 changed files with 215 additions and 71 deletions

View File

@@ -179,7 +179,9 @@ class SnippetGenerator {
description.add(line);
} else {
assert(language != null);
components.last.contents.add(line);
if (components.isNotEmpty) {
components.last.contents.add(line);
}
}
}
return <_ComponentTuple>[