getRealIndexFromRenderIndex static method
Implementation
static int getRealIndexFromRenderIndex(
{bool reverse = false, int index = 0, int itemCount = 0, bool loop = false}) {
int initPage = reverse ? (itemCount - index - 1) : index;
if (loop) {
initPage += kMiddleValue;
}
return initPage;
}