isLastChild property
bool
isLastChild
If this is the last child.
Implementation
bool get isLastChild => position.index + 1 == position.total;
If this is the last child.
bool get isLastChild => position.index + 1 == position.total;