From c05d4e80b80f6fab4d591bc2d04116b105ce2490 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:55:56 +0200 Subject: [PATCH] fixed generic type --- .../widget_expandable_section_list.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/screens/settings/components/shared/expandable_section_list/widget_expandable_section_list.dart b/lib/screens/settings/components/shared/expandable_section_list/widget_expandable_section_list.dart index f360fda..0fc5de2 100644 --- a/lib/screens/settings/components/shared/expandable_section_list/widget_expandable_section_list.dart +++ b/lib/screens/settings/components/shared/expandable_section_list/widget_expandable_section_list.dart @@ -8,12 +8,10 @@ typedef _WidgetBuilder = W Function(BuildContext cont class ExpandableSectionList extends StatefulWidget { final List values; final VoidCallback onSectionTitleTap; - final ExpandableSectionListItem Function(BuildContext context, int index) builder; final _WidgetBuilder, T> contentBuilder; final _WidgetBuilder, T> actionsBuilder; const ExpandableSectionList({ - required this.builder, required this.values, required this.onSectionTitleTap, required this.contentBuilder, @@ -22,10 +20,10 @@ class ExpandableSectionList extends StatefulWidget { }); @override - State createState() => _ExpandableSectionListState(); + State createState() => _ExpandableSectionListState(); } -class _ExpandableSectionListState extends State { +class _ExpandableSectionListState extends State> { final Map> keysMap = {}; @override