maxIndexOfChatListOnViewPort property
int
get
maxIndexOfChatListOnViewPort
Implementation
int get maxIndexOfChatListOnViewPort =>
itemPositionsListener.itemPositions.value
.where((ItemPosition position) => position.itemLeadingEdge < 1)
.reduce((ItemPosition max, ItemPosition position) =>
position.itemLeadingEdge > max.itemLeadingEdge ? position : max)
.index;