updateEvents method
Implementation
@override
void updateEvents(
ListViewModel renderViewModel,
Set<EventHolder> holders,
) {
super.updateEvents(renderViewModel, holders);
if (holders.isNotEmpty) {
for (var holder in holders) {
switch (holder.eventName) {
case kEventOnScroll:
setScrollEventEnable(renderViewModel, holder.isAdd);
break;
case kEventOnScrollBeginDrag:
setScrollBeginDragEventEnable(renderViewModel, holder.isAdd);
break;
case kEventOnScrollEndDrag:
setScrollEndDragEventEnable(renderViewModel, holder.isAdd);
break;
case kEventOnMomentumScrollBegin:
setMomentumScrollBeginEventEnable(renderViewModel, holder.isAdd);
break;
case kEventOnMomentumScrollEnd:
setMomentumScrollEndEventEnable(renderViewModel, holder.isAdd);
break;
case kEventOnEndReached:
setOnEndReached(renderViewModel, holder.isAdd);
break;
case kEventOnAppear:
setOnAppear(renderViewModel, holder.isAdd);
break;
case kEventOnDisAppear:
setOnDisAppear(renderViewModel, holder.isAdd);
break;
case kEventOnWillAppear:
setOnWillAppear(renderViewModel, holder.isAdd);
break;
case kEventOnWillDisAppear:
setOnWillDisAppear(renderViewModel, holder.isAdd);
break;
}
}
}
}