File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/lib/features/geckoview/features/bookmarks/presentation/screens Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'package:flutter_hooks/flutter_hooks.dart';
66import 'package:flutter_material_design_icons/flutter_material_design_icons.dart' ;
77import 'package:flutter_mozilla_components/flutter_mozilla_components.dart' ;
88import 'package:hooks_riverpod/hooks_riverpod.dart' ;
9+ import 'package:nullability/nullability.dart' ;
910import 'package:weblibre/core/routing/routes.dart' ;
1011import 'package:weblibre/features/geckoview/features/bookmarks/domain/entities/bookmark_item.dart' ;
1112import 'package:weblibre/features/geckoview/features/bookmarks/domain/providers/bookmarks.dart' ;
@@ -73,10 +74,12 @@ class BookmarkListScreen extends HookConsumerWidget {
7374 leadingIcon: const Icon (MdiIcons .expandAll),
7475 child: const Text ('Expand All Folders' ),
7576 onPressed: () {
76- treeKey.currentState? .controller.expandAllChildren (
77- treeKey.currentState! .controller.tree,
78- recursive: true ,
79- );
77+ treeKey.currentState? .controller.mapNotNull ((controller) {
78+ controller.expandAllChildren (
79+ controller.tree,
80+ recursive: true ,
81+ );
82+ });
8083 },
8184 ),
8285 ],
You can’t perform that action at this time.
0 commit comments