showMiniSearchListPopup<T> function

Future<int?> showMiniSearchListPopup<T>(
  1. BuildContext context,
  2. List<T> dataSource, {
  3. required Contains<T> contains,
  4. String? hintText,
  5. double titleHeight = 60,
  6. ToString<T>? toLabel,
  7. BuildCheckChild<T>? buildItem,
  8. Color backgroundColor = Colors.white,
  9. Widget operation = const SizedBox(height: 15),
  10. EdgeInsetsGeometry padding = const EdgeInsets.only(left: 5, right: 5, bottom: 10),
})

Implementation

Future<int?> showMiniSearchListPopup<T>(
  BuildContext context,
  List<T> dataSource, {
  required Contains<T> contains,
  String? hintText,
  double titleHeight = 60,
  ToString<T>? toLabel,
  BuildCheckChild<T>? buildItem,
  Color backgroundColor = Colors.white,
  Widget operation = const SizedBox(height: 15),
  EdgeInsetsGeometry padding =
      const EdgeInsets.only(left: 5, right: 5, bottom: 10),
}) async {
  return await showCupertinoModalPopup<int>(
      context: context,
      builder: (ctx) {
        return MiniSearchListBottomSheet<T>(
          hintText: hintText,
          contains: contains,
          backgroundColor: backgroundColor,
          padding: padding,
          titleHeight: titleHeight,
          dataSource: dataSource,
          buildItem: buildItem,
          toLabel: toLabel,
          operation: operation,
        );
      });
}