pageSelection property

DesignSelection get pageSelection

The shown page's selection, for its select-all box.

Implementation

DesignSelection get pageSelection {
  final page = pageRows;
  final n = page.where(isSelected).length;
  if (n == 0) return DesignSelection.none;
  return n == page.length ? DesignSelection.all : DesignSelection.some;
}