BsSelectBox constructor

const BsSelectBox({
  1. Key? key,
  2. required BsSelectBoxController controller,
  3. EdgeInsets margin = EdgeInsets.zero,
  4. EdgeInsets padding = const EdgeInsets.all(12.0),
  5. FocusNode? focusNode,
  6. String? hintText,
  7. String? hintTextLabel,
  8. String? noDataText = 'No data found',
  9. String? placeholderSearch = 'Search ...',
  10. BsSelectBoxSize size = const BsSelectBoxSize(),
  11. BsSelectBoxStyle style = BsSelectBoxStyle.bordered,
  12. BsSelectBoxServerSide? serverSide,
  13. bool searchable = false,
  14. bool autoClose = true,
  15. bool alwaysUpdate = false,
  16. bool disabled = false,
  17. List<BsSelectValidator> validators = const [],
  18. ValueChanged<BsSelectBoxOption>? onChange,
  19. ValueChanged<BsSelectBoxOption>? onRemoveSelectedItem,
  20. VoidCallback? onClear,
  21. VoidCallback? onClose,
  22. VoidCallback? onOpen,
  23. BsDialogBoxStyle dialogStyle = const BsDialogBoxStyle(),
  24. EdgeInsetsGeometry paddingDialog = const EdgeInsets.all(10.0),
  25. 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);