model property
Something that can logically move to a next/prev value.
Implementation
@Input()
set model(Sequential newModel) {
_modelListeners.dispose();
_model = newModel;
_hasNext = newModel.hasNext.value ?? false;
_hasPrev = newModel.hasPrev.value ?? false;
//if (newModel != null) {
_modelListeners
..addStreamSubscription(newModel.hasNext.stream.listen((newValue) {
_hasNext = newValue;
_changeDetector.markForCheck();
}))
..addStreamSubscription(newModel.hasPrev.stream.listen((newValue) {
_hasPrev = newValue;
_changeDetector.markForCheck();
}));
//}
}