INNER CODE UNIT · Dart

prev

Dimibe/grouped_list · lib/sliver_grouped_list.dart:123

            var prev = widget.groupBy(_sortedElements[actualIndex - 1]);
            if (prev != curr) {
              return _buildGroupSeparator(_sortedElements[actualIndex]);
            }
            return widget.separator;
          }
          return _buildItem(context, actualIndex);
        },
      ),
    );
  }

  Container _buildItem(BuildContext context, int actualIndex) {
    var key = GlobalKey();
    _keys['$actualIndex'] = key;
    return Container(
        key: key,
        child: widget.indexedItemBuilder == null

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…