ChipList constructor

ChipList({
  1. Key? key,
  2. required List<String> listOfChipNames,
  3. required List<int> listOfChipIndicesCurrentlySeclected,
  4. List<Color> activeTextColorList = const [Colors.white],
  5. List<Color> inactiveTextColorList = const [Colors.blue],
  6. List<Color> activeBgColorList = const [Colors.blue],
  7. List<Color> inactiveBgColorList = const [Colors.white],
  8. TextStyle? style,
  9. List<Color> inactiveBorderColorList = const [Colors.white],
  10. List<Color> activeBorderColorList = const [Colors.white],
  11. List<double> borderRadiiList = const [15],
  12. bool supportsMultiSelect = false,
  13. OnToggle? extraOnToggle,
  14. bool shouldWrap = false,
  15. ScrollPhysics? scrollPhysics,
  16. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  17. WrapAlignment wrapAlignment = WrapAlignment.start,
  18. WrapCrossAlignment wrapCrossAlignment = WrapCrossAlignment.start,
  19. Axis axis = Axis.horizontal,
  20. WrapAlignment runAlignment = WrapAlignment.start,
  21. double runSpacing = 0.0,
  22. double spacing = 0.0,
  23. TextDirection? textDirection,
  24. VerticalDirection verticalDirection = VerticalDirection.down,
  25. EdgeInsets padding = EdgeInsets.zero,
  26. double widgetSpacing = 4,
  27. Color? checkmarkColor,
  28. bool showCheckmark = true,
})

Implementation

ChipList({
  Key? key,
  required this.listOfChipNames,
  required this.listOfChipIndicesCurrentlySeclected,
  this.activeTextColorList = const [Colors.white],
  this.inactiveTextColorList = const [Colors.blue],
  this.activeBgColorList = const [Colors.blue],
  this.inactiveBgColorList = const [Colors.white],
  this.style,
  this.inactiveBorderColorList = const [Colors.white],
  this.activeBorderColorList = const [Colors.white],
  this.borderRadiiList = const [15],
  this.supportsMultiSelect = false,
  this.extraOnToggle,
  this.shouldWrap = false,
  this.scrollPhysics,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.wrapAlignment = WrapAlignment.start,
  this.wrapCrossAlignment = WrapCrossAlignment.start,
  this.axis = Axis.horizontal,
  this.runAlignment = WrapAlignment.start,
  this.runSpacing = 0.0,
  this.spacing = 0.0,
  this.textDirection,
  this.verticalDirection = VerticalDirection.down,
  this.padding = EdgeInsets.zero,
  this.widgetSpacing = 4,
  this.checkmarkColor,
  this.showCheckmark = true,
}) : super(key: key);