BoardState constructor

BoardState({
  1. required List<BoardList> lists,
  2. required ScrollController controller,
  3. int? dragListIndex,
  4. dynamic onItemTap(
    1. int? itemIndex,
    2. int? listIndex
    )?,
  5. dynamic onItemLongPress(
    1. int? itemIndex,
    2. int? listIndex
    )?,
  6. ScrollConfig? boardScrollConfig,
  7. ScrollConfig? listScrollConfig,
  8. VoidCallback? setstate,
  9. dynamic onListTap(
    1. int? listIndex
    )?,
  10. void onItemReorder(
    1. int? oldCardIndex,
    2. int? newCardIndex,
    3. int? oldListIndex,
    4. int? newListIndex,
    )?,
  11. void onListReorder(
    1. int? oldListIndex,
    2. int? newListIndex
    )?,
  12. void onListRename(
    1. String? oldName,
    2. String? newName
    )?,
  13. void onNewCardInsert(
    1. String? cardIndex,
    2. String? listIndex,
    3. String? text
    )?,
  14. double? displacementX,
  15. double? displacementY,
  16. int? newCardIndex,
  17. int? newCardListIndex,
  18. dynamic onListLongPress(
    1. int? listIndex
    )?,
  19. int? dragItemIndex,
  20. TextStyle? textStyle,
  21. Color? backgroundColor = Colors.white,
  22. Color? cardPlaceholderColor,
  23. Color? listPlaceholderColor,
  24. Widget cardTransitionBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  25. Widget listTransitionBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  26. Decoration? listDecoration,
  27. Decoration? boardDecoration,
  28. int? dragItemOfListIndex,
  29. bool isElementDragged = false,
  30. Duration cardTransitionDuration = const Duration(milliseconds: 150),
  31. Duration listTransitionDuration = const Duration(milliseconds: 150),
  32. bool isListDragged = false,
})

Implementation

BoardState(
    {required this.lists,
    required this.controller,
    this.dragListIndex,
    this.onItemTap,
    this.onItemLongPress,
    this.boardScrollConfig,
    this.listScrollConfig,
    this.setstate,
    this.onListTap,
    this.onItemReorder,
    this.onListReorder,
    this.onListRename,
    this.onNewCardInsert,
    this.displacementX,
    this.displacementY,
    this.newCardIndex,
    this.newCardListIndex,
    this.onListLongPress,
    this.dragItemIndex,
    this.textStyle,
    this.backgroundColor = Colors.white,
    this.cardPlaceholderColor,
    this.listPlaceholderColor,
    this.cardTransitionBuilder,
    this.listTransitionBuilder,
    this.listDecoration,
    this.boardDecoration,
    this.dragItemOfListIndex,
    this.isElementDragged = false,
    this.cardTransitionDuration= const Duration(milliseconds: 150),
    this.listTransitionDuration= const Duration(milliseconds: 150),
    this.isListDragged = false}) {
  textStyle = textStyle ??
      TextStyle(
          color: Colors.grey.shade800,
          fontSize: 19,
          fontWeight: FontWeight.w400);

}