Minor cleanup

This commit is contained in:
Mattia 2020-10-17 14:50:58 +02:00
parent 9c46b9bd2c
commit 03ab35260c
1 changed files with 8 additions and 5 deletions

View File

@ -57,8 +57,10 @@ class ChannelClient {
id.viewCount,
id.joinDate,
id.title,
id.avatar
.map((e) => ChannelThumbnail(Uri.parse(e.url), e.height, e.width)),
[
for (var e in id.avatar)
ChannelThumbnail(Uri.parse(e.url), e.height, e.width)
],
id.country,
id.channelLinks);
}
@ -78,9 +80,10 @@ class ChannelClient {
id.viewCount,
id.joinDate,
id.title,
id.avatar
.map((e) => ChannelThumbnail(Uri.parse(e.url), e.height, e.width))
.toList(),
[
for (var e in id.avatar)
ChannelThumbnail(Uri.parse(e.url), e.height, e.width)
],
id.country,
id.channelLinks);
}