more ui-as-code (#35393)

* more ui-as-code

* address review comments
This commit is contained in:
Alexandre Ardhuin
2019-07-02 21:11:56 +02:00
committed by GitHub
parent e2a55fe83f
commit 758009ba70
62 changed files with 676 additions and 774 deletions

View File

@@ -1401,8 +1401,7 @@ String zalgo(math.Random random, int targetLength, { bool includeSpacingCombinin
}
}
base ??= String.fromCharCode(randomCharacter(random));
final List<int> characters = <int>[];
characters.addAll(these);
final List<int> characters = these.toList();
return base + String.fromCharCodes(characters);
}