DrawerContentSingleSelectParams<T> constructor
DrawerContentSingleSelectParams<T> ({
- required BuildContext context,
- OptionData<
T> ? initialValue, - bool? isUseButton = true,
- required dynamic onItemSelected(
- OptionData<
T> ? optionData
- OptionData<
- required Future<
List< initState(),OptionData< >T> > - BorderRadius? borderRadius,
- bool? withSearch,
- Widget? separator,
- String? searchHint,
- Widget? onLoading,
- Widget? onEmpty,
- Widget? onError,
- double height = 500,
- SearchTextFieldParams? searchParams,
Implementation
DrawerContentSingleSelectParams({
required this.context,
this.initialValue,
this.isUseButton = true,
required this.onItemSelected,
required this.initState,
this.borderRadius,
this.withSearch,
this.separator,
this.searchHint,
this.onLoading,
this.onEmpty,
this.onError,
this.height = 500,
this.searchParams,
}) : assert(height <= MediaQuery.of(context).size.height * .5,
"Tinggi tidak boleh melebih setengah layar");