isTheFirstOnRow method

bool isTheFirstOnRow(
  1. List<SortableElement> elements
)

Implementation

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