showMultiColumnBottomSheetDialog function
Future
showMultiColumnBottomSheetDialog(
- BuildContext context,
- String title,
- List<Map<String, dynamic>> items,
- String parentIdKey,
- int parentId, {
- int? selected,
- String? itemName,
- String? compareId,
- dynamic onSelected(
- List<Map<String, dynamic>> items,
- List<int> ids
)?,
})
Implementation
Future showMultiColumnBottomSheetDialog(BuildContext context, String title, List<Map<String, dynamic>> items, String parentIdKey, int parentId,
{int? selected, String? itemName, String? compareId, Function(List<Map<String, dynamic>> items, List<int> ids)? onSelected}) {
return showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (context) {
return MultiColumnBottomSheet(
title: title,
items: items,
parentIdKey: parentIdKey,
parentId: parentId,
itemName: itemName,
compareId: compareId,
selected: selected,
onSelected: onSelected,
);
});
}