onPageScroll method

void onPageScroll(
  1. int position,
  2. double offset
)

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,
  );
}