SimpleGroupedChips<T> constructor

SimpleGroupedChips<T>({
  1. Key? key,
  2. required GroupController controller,
  3. required List<T> values,
  4. required List<String> itemTitle,
  5. List<String>? disabledItems,
  6. OnChanged? onItemSelected,
  7. Color backgroundColorItem = Colors.grey,
  8. Color? disabledColor = Colors.grey,
  9. Color selectedColorItem = Colors.black,
  10. Color selectedTextColor = Colors.white,
  11. Color textColor = Colors.black,
  12. IconData? selectedIcon = Icons.done,
  13. ChipGroupStyle chipGroupStyle = const ChipGroupStyle.minimize(),
  14. bool isScrolling = false,
})

Implementation

SimpleGroupedChips({
  Key? key,
  required this.controller,
  required this.values,
  required this.itemTitle,
  this.disabledItems,
  this.onItemSelected,
  this.backgroundColorItem = Colors.grey,
  this.disabledColor = Colors.grey,
  this.selectedColorItem = Colors.black,
  this.selectedTextColor = Colors.white,
  this.textColor = Colors.black,
  this.selectedIcon = Icons.done,
  this.chipGroupStyle = const ChipGroupStyle.minimize(),
  this.isScrolling = false,
})  : assert(
          disabledItems == null ||
              disabledItems == [] ||
              disabledItems
                  .takeWhile((i) => itemTitle.contains(i))
                  .isNotEmpty,
          "you cannot disable items doesn't exist in itemTitle"),
      super(key: key);