TreeSelectDropDown<int> constructor

const TreeSelectDropDown<int>({
  1. Key? key,
  2. required OnOptionSelected<int>? onOptionSelected,
  3. required List<TreeNode> options,
  4. TreeSelectionType treeSelectionType = TreeSelectionType.singleSelect,
  5. List<TreeNode> selectedOptions = const [],
  6. ChipConfig chipConfig = const ChipConfig(),
  7. IconData suffixIcon = Icons.arrow_drop_down,
  8. Decoration? inputDecoration,
  9. FocusNode? focusNode,
  10. TreeSelectController<int>? controller,
  11. bool isDisabled = false,
  12. String clearAllText = "Clear All",
  13. List<ValueMapper>? valueMapper,
  14. String? errorMessage,
  15. String? helpText,
  16. bool readOnly = false,
})

Implementation

const TreeSelectDropDown({
  Key? key,
  required this.onOptionSelected,
  required this.options,
  this.treeSelectionType = TreeSelectionType.singleSelect,
  this.selectedOptions = const [],
  this.chipConfig = const ChipConfig(),
  this.suffixIcon = Icons.arrow_drop_down,
  this.inputDecoration,
  this.focusNode,
  this.controller,
  this.isDisabled = false,
  this.clearAllText = "Clear All",
  this.valueMapper,
  this.errorMessage,
  this.helpText,
  this.readOnly = false,
}) : super(key: key);