MultiSelectNested constructor

const MultiSelectNested({
  1. Key? key,
  2. required List<MultiSelectNestedItem> options,
  3. MultiSelectNestedController? controller,
  4. dynamic setSelectedValues(
    1. List<MultiSelectNestedItem>
    )?,
  5. List<MultiSelectNestedItem> selectedValues = const <MultiSelectNestedItem>[],
  6. bool isAnimatedContainer = false,
  7. bool liveUpdateValues = false,
  8. EdgeInsets paddingDropdown = const EdgeInsets.all(8),
  9. EdgeInsets paddingSelectedItems = const EdgeInsets.all(8),
  10. Curve effectAnimatedContainer = Curves.fastOutSlowIn,
  11. Duration durationEffect = const Duration(seconds: 1),
  12. double heightDropdownContainer = 0,
  13. double heightDropdownContainerDefault = 200,
  14. Color dropdownContainerColor = MultiSelectNestedColors.SECONDARY_LIGHT_COLOR,
  15. Color collapsedIconColor = MultiSelectNestedColors.PRIMARY,
  16. Color selectedItemColor = MultiSelectNestedColors.TERTIARY_COLOR,
  17. Color selectedItemDividerColor = MultiSelectNestedColors.SECONDARY_COLOR,
  18. String noItemsText = 'No Items Selected...',
  19. Color selectedItemsRowColor = MultiSelectNestedColors.SECONDARY_LIGHT_COLOR,
  20. TextStyle noItemsTextStyle = const TextStyle(fontSize: 12, color: MultiSelectNestedColors.PRIMARY_LIGHT_COLOR_01),
  21. TextStyle styleDropdownItemName = const TextStyle(fontSize: 15, color: MultiSelectNestedColors.PRIMARY),
})

Implementation

const MultiSelectNested({
  super.key,
  required this.options,
  this.controller,
  this.setSelectedValues,
  this.selectedValues = const <MultiSelectNestedItem>[],
  this.isAnimatedContainer = false,
  this.liveUpdateValues = false,
  this.paddingDropdown = const EdgeInsets.all(8),
  this.paddingSelectedItems = const EdgeInsets.all(8),
  this.effectAnimatedContainer = Curves.fastOutSlowIn,
  this.durationEffect = const Duration(seconds: 1),
  this.heightDropdownContainer = 0,
  this.heightDropdownContainerDefault = 200,
  this.dropdownContainerColor = MultiSelectNestedColors.SECONDARY_LIGHT_COLOR,
  this.collapsedIconColor = MultiSelectNestedColors.PRIMARY,
  this.selectedItemColor = MultiSelectNestedColors.TERTIARY_COLOR,
  this.selectedItemDividerColor = MultiSelectNestedColors.SECONDARY_COLOR,
  this.noItemsText = 'No Items Selected...',
  this.selectedItemsRowColor = MultiSelectNestedColors.SECONDARY_LIGHT_COLOR,
  this.noItemsTextStyle = const TextStyle(
    fontSize: 12,
    color: MultiSelectNestedColors.PRIMARY_LIGHT_COLOR_01,
  ),
  this.styleDropdownItemName = const TextStyle(
    fontSize: 15,
    color: MultiSelectNestedColors.PRIMARY,
  ),
});