71 lines
2.1 KiB
Dart
71 lines
2.1 KiB
Dart
// dart format width=80
|
||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
||
// **************************************************************************
|
||
// Generator: RxBlocGeneratorForAnnotation
|
||
// **************************************************************************
|
||
|
||
part of 'documents.dart';
|
||
|
||
/// Used as a contractor for the bloc, events and states classes
|
||
/// @nodoc
|
||
abstract class DocumentPageBlocType extends RxBlocTypeBase {
|
||
DocumentPageBlocEvents get events;
|
||
DocumentPageBlocStates get states;
|
||
}
|
||
|
||
/// [$DocumentPageBloc] extended by the [DocumentPageBloc]
|
||
/// @nodoc
|
||
abstract class $DocumentPageBloc extends RxBlocBase
|
||
implements
|
||
DocumentPageBlocEvents,
|
||
DocumentPageBlocStates,
|
||
DocumentPageBlocType {
|
||
final _compositeSubscription = rx.CompositeSubscription();
|
||
|
||
/// Тhe [Subject] where events sink to by calling [selectDocument]
|
||
final _$selectDocumentEvent = rx.PublishSubject<Document>();
|
||
|
||
/// Тhe [Subject] where events sink to by calling [unselectDocument]
|
||
final _$unselectDocumentEvent = rx.PublishSubject<void>();
|
||
|
||
/// The state of [isDocumentSelected] implemented in
|
||
/// [_mapToIsDocumentSelectedState]
|
||
late final Stream<bool> _isDocumentSelectedState =
|
||
_mapToIsDocumentSelectedState();
|
||
|
||
/// The state of [currentDocument] implemented in [_mapToCurrentDocumentState]
|
||
late final Stream<(Document, Uri)?> _currentDocumentState =
|
||
_mapToCurrentDocumentState();
|
||
|
||
@override
|
||
void selectDocument(Document document) => _$selectDocumentEvent.add(document);
|
||
|
||
@override
|
||
void unselectDocument() => _$unselectDocumentEvent.add(null);
|
||
|
||
@override
|
||
Stream<bool> get isDocumentSelected => _isDocumentSelectedState;
|
||
|
||
@override
|
||
Stream<(Document, Uri)?> get currentDocument => _currentDocumentState;
|
||
|
||
Stream<bool> _mapToIsDocumentSelectedState();
|
||
|
||
Stream<(Document, Uri)?> _mapToCurrentDocumentState();
|
||
|
||
@override
|
||
DocumentPageBlocEvents get events => this;
|
||
|
||
@override
|
||
DocumentPageBlocStates get states => this;
|
||
|
||
@override
|
||
void dispose() {
|
||
_$selectDocumentEvent.close();
|
||
_$unselectDocumentEvent.close();
|
||
_compositeSubscription.dispose();
|
||
super.dispose();
|
||
}
|
||
}
|