BsSelectBox constructor
const
BsSelectBox({
- Key? key,
- required BsSelectBoxController controller,
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsets padding = const EdgeInsets.all(12.0),
- FocusNode? focusNode,
- String? hintText,
- String? hintTextLabel,
- String? noDataText = 'No data found',
- String? placeholderSearch = 'Search ...',
- BsSelectBoxSize size = const BsSelectBoxSize(),
- BsSelectBoxStyle style = BsSelectBoxStyle.bordered,
- BsSelectBoxServerSide? serverSide,
- bool searchable = false,
- bool autoClose = true,
- bool alwaysUpdate = false,
- bool disabled = false,
- List<
BsSelectValidator> validators = const [], - ValueChanged<
BsSelectBoxOption> ? onChange, - ValueChanged<
BsSelectBoxOption> ? onRemoveSelectedItem, - VoidCallback? onClear,
- VoidCallback? onClose,
- VoidCallback? onOpen,
- BsDialogBoxStyle dialogStyle = const BsDialogBoxStyle(),
- EdgeInsetsGeometry paddingDialog = const EdgeInsets.all(10.0),
- EdgeInsets marginDialog = const EdgeInsets.only(top: 2.0, bottom: 2.0),
Implementation
const BsSelectBox({
Key? key,
required this.controller,
this.margin = EdgeInsets.zero,
this.padding = const EdgeInsets.all(12.0),
this.focusNode,
this.hintText,
this.hintTextLabel,
this.noDataText = 'No data found',
this.placeholderSearch = 'Search ...',
this.size = const BsSelectBoxSize(),
this.style = BsSelectBoxStyle.bordered,
this.serverSide,
this.searchable = false,
this.autoClose = true,
this.alwaysUpdate = false,
this.disabled = false,
this.validators = const [],
this.onChange,
this.onRemoveSelectedItem,
this.onClear,
this.onClose,
this.onOpen,
this.dialogStyle = const BsDialogBoxStyle(),
this.paddingDialog = const EdgeInsets.all(10.0),
this.marginDialog = const EdgeInsets.only(top: 2.0, bottom: 2.0),
}) : super(key: key);