updateEvents method
Implementation
@override
void updateEvents(
WebViewViewModel renderViewModel,
Set<EventHolder> holders,
) {
super.updateEvents(renderViewModel, holders);
if (holders.isNotEmpty) {
for (var holder in holders) {
switch (holder.eventName) {
case kEventOnLoad:
setOnLoad(renderViewModel, holder.isAdd);
break;
case kEventOnLoadStart:
setOnLoadStart(renderViewModel, holder.isAdd);
break;
case kEventOnLoadEnd:
setOnLoadEnd(renderViewModel, holder.isAdd);
break;
case kEventOnError:
setOnError(renderViewModel, holder.isAdd);
break;
}
}
}
}