showMultiColumnBottomSheetDialog function

Future showMultiColumnBottomSheetDialog(
  1. BuildContext context,
  2. String title,
  3. List<Map<String, dynamic>> items,
  4. String parentIdKey,
  5. int parentId, {
  6. int? selected,
  7. String? itemName,
  8. String? compareId,
  9. dynamic onSelected(
    1. List<Map<String, dynamic>> items,
    2. 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,
        );
      });
}