ItemTags constructor

ItemTags(
  1. {@required int index,
  2. @required String title,
  3. double textScaleFactor,
  4. bool active = true,
  5. bool pressEnabled = true,
  6. dynamic customData,
  7. TextStyle textStyle = const TextStyle(fontSize: 14),
  8. MainAxisAlignment alignment = MainAxisAlignment.center,
  9. ItemTagsCombine combine = ItemTagsCombine.imageOrIconOrText,
  10. ItemTagsIcon icon,
  11. ItemTagsImage image,
  12. ItemTagsRemoveButton removeButton,
  13. BorderRadius borderRadius,
  14. BoxBorder border,
  15. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 7, vertical: 5),
  16. double elevation = 5,
  17. bool singleItem = false,
  18. TextOverflow textOverflow = TextOverflow.fade,
  19. Color textColor = Colors.black,
  20. Color textActiveColor = Colors.white,
  21. Color color = Colors.white,
  22. Color activeColor = Colors.blueGrey,
  23. Color highlightColor,
  24. Color splashColor,
  25. Color colorShowDuplicate = Colors.red,
  26. OnPressedCallback onPressed,
  27. OnLongPressedCallback onLongPressed,
  28. Key key}
)

Implementation

ItemTags(
    {@required this.index,
    @required this.title,
    this.textScaleFactor,
    this.active = true,
    this.pressEnabled = true,
    this.customData,
    this.textStyle = const TextStyle(fontSize: 14),
    this.alignment = MainAxisAlignment.center,
    this.combine = ItemTagsCombine.imageOrIconOrText,
    this.icon,
    this.image,
    this.removeButton,
    this.borderRadius,
    this.border,
    this.padding = const EdgeInsets.symmetric(horizontal: 7, vertical: 5),
    this.elevation = 5,
    this.singleItem = false,
    this.textOverflow = TextOverflow.fade,
    this.textColor = Colors.black,
    this.textActiveColor = Colors.white,
    this.color = Colors.white,
    this.activeColor = Colors.blueGrey,
    this.highlightColor,
    this.splashColor,
    this.colorShowDuplicate = Colors.red,
    this.onPressed,
    this.onLongPressed,
    Key key})
    : assert(index != null),
      assert(title != null),
      super(key: key);