Skip to content

Commit

Permalink
use lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Malochka committed Nov 20, 2024
1 parent 3a9e7c7 commit bdf72b1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ class AccountAssetTabCubit extends Cubit<AccountAssetTabState> {
.reduce((previous, element) => [...previous, ...element])
.asStream()
.listen(
(value) {
_updateAccounts(value.length);
},
onError: (_) => _updateAccounts(0),
);
(value) => _updateAccounts(value.length),
onError: (_) => _updateAccounts(0),
);
}

final AssetsService assetsService;
Expand Down

0 comments on commit bdf72b1

Please sign in to comment.