INNER CODE UNIT · Dart

_SliverGroupedListViewState

Dimibe/grouped_list · lib/sliver_grouped_list.dart:92

class _SliverGroupedListViewState<T, E>
    extends State<SliverGroupedListView<T, E>> {
  final LinkedHashMap<String, GlobalKey> _keys = LinkedHashMap();
  List<T> _sortedElements = [];

  @override
  Widget build(BuildContext context) {
    _sortedElements = _sortElements();
    var hiddenIndex = 0;
    isSeparator(int i) => i.isEven;

    return SliverList(
      delegate: SliverChildBuilderDelegate(
        childCount: widget.footer == null
            ? _sortedElements.length * 2
            : (_sortedElements.length * 2) + 1,
        (context, index) {
          var actualIndex = index ~/ 2;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…