expose channels setter

This commit is contained in:
Salvatore Giordano
2020-12-17 10:13:39 +01:00
parent e590787bdd
commit f79d49ce89
+5
View File
@@ -58,6 +58,11 @@ class ChannelsBlocState extends State<ChannelsBloc>
final BehaviorSubject<List<Channel>> _channelsController = BehaviorSubject();
/// Set the current channel list
set channels(List<Channel> newChannels) {
_channelsController.add(newChannels);
}
/// The stream notifying the state of queryChannel call
Stream<bool> get queryChannelsLoading =>
_queryChannelsLoadingController.stream;