onPageScroll method
Implementation
void onPageScroll(int position, double offset) {
var params = VoltronMap();
params.push("position", position);
params.push("offset", offset);
context.renderBridgeManager.sendComponentEvent(
rootId,
id,
ViewPagerController.kEventOnPageScroll,
params,
);
}