isTheLastOnRow method

bool isTheLastOnRow(
  1. List<SortableElement> elements
)

Implementation

bool isTheLastOnRow(List<SortableElement> elements) {
  int index = elements.indexOf(this);
  return index != elements.length - 1 && (index + 1) % parent.elementCountPerRow == 0;
}