Format remaining files to 120 line limit

This commit is contained in:
Tommy Chow 2023-01-19 23:30:05 -05:00
parent aadac3e484
commit 25e6bc478b
5 changed files with 30 additions and 15 deletions

View file

@ -52,7 +52,8 @@ abstract class ListStoreBase with Store {
/// The list of the fetched streams with blocked users filtered out.
@computed
ObservableList<StreamTwitch> get streams => _allStreams
.where((streamInfo) => !authStore.user.blockedUsers.map((blockedUser) => blockedUser.userId).contains(streamInfo.userId))
.where((streamInfo) =>
!authStore.user.blockedUsers.map((blockedUser) => blockedUser.userId).contains(streamInfo.userId))
.toList()
.asObservable();

View file

@ -29,7 +29,9 @@ abstract class UserStoreBase with Store {
// Get and update the current user's list of blocked users.
// Don't use await because having a huge list of blocked users will block the UI.
if (_details?.id != null) {
twitchApi.getUserBlockedList(id: _details!.id, headers: headers).then((blockedUsers) => _blockedUsers = blockedUsers.asObservable());
twitchApi
.getUserBlockedList(id: _details!.id, headers: headers)
.then((blockedUsers) => _blockedUsers = blockedUsers.asObservable());
}
_disposeReaction = autorun((_) => _blockedUsers.sort((a, b) => a.userLogin.compareTo(b.userLogin)));