INNER CODE UNIT · Dart
actualIndex
Dimibe/grouped_list · lib/sliver_grouped_list.dart:109
var actualIndex = index ~/ 2;
if (widget.footer != null && index == _sortedElements.length * 2) {
return widget.footer!;
}
if (index == hiddenIndex) {
return Opacity(
opacity: 1,
child: _buildGroupSeparator(_sortedElements[actualIndex]),
);
}
if (isSeparator(index)) {
var curr = widget.groupBy(_sortedElements[actualIndex]);
var prev = widget.groupBy(_sortedElements[actualIndex - 1]);
if (prev != curr) {
return _buildGroupSeparator(_sortedElements[actualIndex]);
}