BaseFieldSelectMulti constructor

const BaseFieldSelectMulti({
  1. Key? key,
  2. String? label,
  3. List<Option> selected = const [],
  4. double fontSize = 18,
  5. TextAlign textAlign = TextAlign.start,
  6. FontWeight fontWeight = FontWeight.bold,
  7. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12),
  8. List<Option> options = const [],
  9. String placeholder = 'Select an items',
  10. double? placeholderFontSize = 18,
  11. MainAxisAlignment placeholderTextAlign = MainAxisAlignment.start,
  12. FontWeight placeholderFontWeight = FontWeight.bold,
  13. EdgeInsets placeholderPadding = EdgeInsets.zero,
  14. double? width,
  15. double height = 40,
  16. Border? border,
  17. BorderRadiusGeometry? borderRadius,
  18. Color? background,
  19. Widget renderOption(
    1. Option option,
    2. dynamic onPressed()
    )?,
  20. bool? isError,
  21. void onChanged(
    1. List<Option>
    )?,
})

Implementation

const BaseFieldSelectMulti({
  super.key,

  // label
  this.label,

  // value
  this.selected = const [],
  this.fontSize = 18,
  this.textAlign = TextAlign.start,
  this.fontWeight = FontWeight.bold,
  this.padding = const EdgeInsets.symmetric(
    horizontal: 12,
  ),
  this.options = const [],

  // placeholder
  this.placeholder = 'Select an items',
  this.placeholderFontSize = 18,
  this.placeholderTextAlign = MainAxisAlignment.start,
  this.placeholderFontWeight = FontWeight.bold,
  this.placeholderPadding = EdgeInsets.zero,

  // appearance
  this.width,
  this.height = 40,
  this.border,
  this.borderRadius,
  this.background,
  this.renderOption,
  this.isError,

  // behaviour
  this.onChanged,
});