modalStyle method
Implementation
PopupProps<T> modalStyle(BuildContext context) {
return PopupProps.modalBottomSheet(
title: title,
showSearchBox: showSearchBox,
searchDelay: searchDelay ?? Duration.zero,
modalBottomSheetProps: ModalBottomSheetProps(
padding: EdgeInsets.all(TSizes().md),
enableDrag: true,
showDragHandle: true,
backgroundColor: THelperFunctions.isDarkMode(context) ? TColors().darkBackground : Colors.white,
),
searchFieldProps: _searchFieldProps(),
emptyBuilder: (context, searchEntry) => Center(child: Text(noResultsText)),
loadingBuilder: (context, msg) => Center(child: loadingIndicator),
);
}