onContentVisible property
Callback function called when a content item becomes most visible in the viewport.
The callback receives the index of the most visible content item.
Implementation
final Function(int index)? onContentVisible;
Callback function called when a content item becomes most visible in the viewport.
The callback receives the index of the most visible content item.
final Function(int index)? onContentVisible;