simplify banner split code

pull/5/head
fuwa 4 years ago
parent 3b552e32c4
commit a4519326c0

@ -42,11 +42,7 @@ class LoadingState extends AppState {
Future<SyncingState> next() async {
Future<void> showBanner() async {
List<String> chars = [];
banner.runes.forEach((int rune) {
final c = String.fromCharCode(rune);
chars.add(c);
});
final Iterable<String> chars = banner.runes.map((x) => String.fromCharCode(x));
for (final String char in chars) {
append(char);