cleanup: dartfmt example directory
MODIFY
example/octocat.dart
example/octocat.dart
@@ -21,11 +21,9 @@ void loadCat() {
var index = random.nextInt(cats.length);
var cat = cats[index];
print("Selected Octocat at ${index} (${cat.name})");
- $octocat.appendHtml(
- """
+ $octocat.appendHtml("""
<h2>${cat.name}</h2>
<a class="center" href="${cat.url}"><img src="${cat.image}"></img></a>
- """,
- treeSanitizer: NodeTreeSanitizer.trusted);
+ """, treeSanitizer: NodeTreeSanitizer.trusted);
});
}

MODIFY
example/releases.dart
example/releases.dart
@@ -19,13 +19,11 @@ void loadReleases() {
.toList()
.then((releases) {
for (var release in releases) {
- releasesDiv.appendHtml(
- """
+ releasesDiv.appendHtml("""
<div class="repo box" id="release-${release.id}">
<h1>${release.name}</h1>
</div>
- """,
- treeSanitizer: NodeTreeSanitizer.trusted);
+ """, treeSanitizer: NodeTreeSanitizer.trusted);
var rel = releasesDiv.querySelector("#release-${release.id}");
void append(String key, String value) {
if (value == null) return;

MODIFY
example/repos.dart
example/repos.dart
@@ -54,8 +54,7 @@ void updateRepos(List<Repository> repos,
document.querySelector("#repos").children.clear();
repos.sort(compare);
for (var repo in repos) {
- repositoriesDiv.appendHtml(
- """
+ repositoriesDiv.appendHtml("""
<div class="repo" id="repo_${repo.name}">
<div class="line"></div>
<h2><a href="${repo.htmlUrl}">${repo.name}</a></h2>
@@ -73,8 +72,7 @@ void updateRepos(List<Repository> repos,
<b>Size</b>: ${repo.size} bytes
<p></p>
</div>
- """,
- treeSanitizer: NodeTreeSanitizer.trusted);
+ """, treeSanitizer: NodeTreeSanitizer.trusted);
}
}

cleanup: dartfmt example directory