TF-3996 Group context menu actions when opened email
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import 'package:core/presentation/extensions/iterable_extension.dart';
|
||||
import 'package:tmail_ui_user/features/base/widget/context_menu/context_menu_item_action.dart';
|
||||
|
||||
extension ContextMenuActionListExt on List<ContextMenuItemAction> {
|
||||
Map<int, List<ContextMenuItemAction>> groupByCategory() {
|
||||
return groupBy<int>((action) => action.category, sortKeys: true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user