Browse Source

refactor(neon,neon_news,neon_notes): make InteractiveBloc.refresh FutureOr

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/879/head
Nikolas Rimikis 1 year ago
parent
commit
d1fb1f8d66
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/neon/neon/lib/src/bloc/bloc.dart
  2. 2
      packages/neon/neon_news/lib/blocs/article.dart
  3. 2
      packages/neon/neon_notes/lib/blocs/note.dart

2
packages/neon/neon/lib/src/bloc/bloc.dart

@ -19,7 +19,7 @@ abstract class InteractiveBloc extends Bloc {
final _errorsStreamController = StreamController<Object>();
late Stream<Object> errors = _errorsStreamController.stream.asBroadcastStream();
Future<void> refresh();
FutureOr<void> refresh();
void addError(final Object error) {
_errorsStreamController.add(error);

2
packages/neon/neon_news/lib/blocs/article.dart

@ -44,7 +44,7 @@ class NewsArticleBloc extends InteractiveBloc implements NewsArticleBlocEvents,
BehaviorSubject<bool> unread = BehaviorSubject<bool>();
@override
Future<void> refresh() async {}
void refresh() {}
@override
void markArticleAsRead() {

2
packages/neon/neon_notes/lib/blocs/note.dart

@ -62,7 +62,7 @@ class NotesNoteBloc extends InteractiveBloc implements NotesNoteBlocEvents, Note
BehaviorSubject<String> category = BehaviorSubject<String>();
@override
Future<void> refresh() async {}
void refresh() {}
@override
void updateCategory(final String category) {

Loading…
Cancel
Save