MultiSelectorDialogField<V> constructor

MultiSelectorDialogField<V>({
  1. Key? key,
  2. required List<MultiSelectorItem<V>> items,
  3. required ValueChanged<List<V>> onConfirm,
  4. Widget? title,
  5. Text? buttonText,
  6. Icon? buttonIcon,
  7. InputDecoration? decoration,
  8. bool isDense = false,
  9. Color? selectedColor,
  10. bool searchable = false,
  11. Text? confirmText,
  12. Text? cancelText,
  13. String? searchHint,
  14. Color colorBuilder(
    1. V
    )?,
  15. List<V> initialValue = const [],
  16. ShapeBorder? dialogShape,
  17. ShapeBorder? fieldShape,
  18. Widget buttonBuilder(
    1. BuildContext context
    )?,
  19. bool showSelectAll = false,
  20. String? selectAllText,
  21. String? deselectAllText,
  22. double? dialogHeight,
  23. double? dialogWidth,
  24. Color? barrierColor,
  25. Color? backgroundColor,
  26. Color? unselectedColor,
  27. Color? checkColor,
  28. TextStyle? itemsTextStyle,
  29. TextStyle? selectedItemsTextStyle,
  30. TextStyle? searchTextStyle,
  31. TextStyle? searchHintStyle,
  32. Icon? searchIcon,
  33. Icon? closeSearchIcon,
  34. double dialogElevation = 8.0,
  35. EdgeInsets? dialogPadding,
  36. ValueChanged<List<V>>? onSelectionChanged,
  37. FormFieldSetter<List<V>>? onSaved,
  38. FormFieldValidator<List<V>>? validator,
  39. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
})

Implementation

MultiSelectorDialogField({
  super.key,
  required this.items,
  required this.onConfirm,
  this.title,
  this.buttonText,
  this.buttonIcon,
  this.decoration,
  // this.boxDecoration,
  this.isDense = false,
  this.selectedColor,
  this.searchable = false,
  this.confirmText,
  this.cancelText,
  this.searchHint,
  this.colorBuilder,
  this.initialValue = const [],
  // this.separateSelectedItems = false,
  // this.animationDuration = const Duration(milliseconds: 200),
  this.dialogShape,
  this.fieldShape,
  this.buttonBuilder,
  // this.dialogBuilder,
  // this.showClearAll = false,
  // this.clearAllText,
  // this.clearAllIcon,
  // this.onClearAll,
  this.showSelectAll = false,
  this.selectAllText,
  this.deselectAllText,
  // this.selectAllIcon,
  // this.onSelectAll,
  this.dialogHeight,
  this.dialogWidth,
  this.barrierColor,
  this.backgroundColor,
  this.unselectedColor,
  this.checkColor,
  this.itemsTextStyle,
  this.selectedItemsTextStyle,
  this.searchTextStyle,
  this.searchHintStyle,
  this.searchIcon,
  this.closeSearchIcon,
  // this.showItemsDivider = false,
  // this.dividerColor,
  // this.dialogBorderRadius,
  this.dialogElevation = 8.0,
  this.dialogPadding,
  this.onSelectionChanged,
  super.onSaved,
  super.validator,
  AutovalidateMode super.autovalidateMode = AutovalidateMode.disabled,
}) : super(
  initialValue: initialValue,
  builder: (FormFieldState<List<V>> state) {
    return _MultiSelectorDialogFieldView<V>(
      state: state,
      items: items,
      onConfirm: onConfirm,
      title: title,
      buttonText: buttonText,
      buttonIcon: buttonIcon,
      decoration: decoration,
      // boxDecoration: boxDecoration,
      isDense: isDense,
      initialValue: initialValue,
      selectedColor: selectedColor,
      searchable: searchable,
      confirmText: confirmText,
      cancelText: cancelText,
      searchHint: searchHint,
      colorBuilder: colorBuilder,
      // separateSelectedItems: separateSelectedItems,
      // animationDuration: animationDuration,
      dialogShape: dialogShape,
      fieldShape: fieldShape,
      buttonBuilder: buttonBuilder,
      // dialogBuilder: dialogBuilder,
      // showClearAll: showClearAll,
      // clearAllText: clearAllText,
      // clearAllIcon: clearAllIcon,
      // onClearAll: onClearAll,
      showSelectAll: showSelectAll,
      selectAllText: selectAllText,
      deselectAllText: deselectAllText,
      // selectAllIcon: selectAllIcon,
      // onSelectAll: onSelectAll,
      dialogHeight: dialogHeight,
      dialogWidth: dialogWidth,
      barrierColor: barrierColor,
      backgroundColor: backgroundColor,
      unselectedColor: unselectedColor,
      checkColor: checkColor,
      itemsTextStyle: itemsTextStyle,
      selectedItemsTextStyle: selectedItemsTextStyle,
      searchTextStyle: searchTextStyle,
      searchHintStyle: searchHintStyle,
      searchIcon: searchIcon,
      closeSearchIcon: closeSearchIcon,
      // showItemsDivider: showItemsDivider,
      // dividerColor: dividerColor,
      // dialogBorderRadius: dialogBorderRadius,
      dialogElevation: dialogElevation,
      dialogPadding: dialogPadding,
      onSelectionChanged: onSelectionChanged,
    );
  },
);