retainRxAspects method
Retain aspects
in the Rx aspects.
param aspects:
Iterable: retain rx aspects in the aspects
RxImpl: retain rx aspects in the (aspects as RxImpl).rxAspects
: retain rx aspects in the aspects
Implementation
void retainRxAspects(Object aspects) {
if (aspects is Iterable) {
rxAspects.retainAll(aspects);
} else if (aspects is RxImpl) {
rxAspects.retainAll(aspects.rxAspects);
} else {
rxAspects.retainWhere((element) => element == aspects);
}
}