Closed swch01 closed 2 years ago
sectionBuilder or headerBuilder, at least one.
Perhaps this assert
could become
: assert(
(headerBuilder != null && sectionBuilder == null) ||
(headerBuilder == null && sectionBuilder != null),
'You must specify either headerBuilder or sectionBuilder.',
),
ok, i will commit it.
The
headerBuilder
parameter toSliverExpandableChildDelegate
is nullable but its implementation expects a value.https://github.com/tp7309/flutter_sticky_and_expandable_list/blob/9a152581a22e49e461b3f27c40eaaf137618a903/lib/src/sliver_expandable_list.dart#L172