position property
IterationPosition
get
position
Implementation
IterationPosition get position {
return size == 1
? IterationPosition.only
: index == 0
? IterationPosition.first
: index == size - 1
? IterationPosition.last
: IterationPosition.middle;
}