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? cardIndex,
    2. int? listIndex
    )?,
  6. dynamic onListTap(
    1. int? listIndex
    )?,
  7. void onItemReorder(
    1. int? oldCardIndex,
    2. int? newCardIndex,
    3. int? oldListIndex,
    4. int? newListIndex,
    )?,
  8. void onListReorder(
    1. int? oldListIndex,
    2. int? newListIndex
    )?,
  9. void onListRename(
    1. String? oldName,
    2. String? newName
    )?,
  10. void onNewCardInsert(
    1. String? cardIndex,
    2. String? listIndex,
    3. String? text
    )?,
  11. double? displacementX,
  12. double? displacementY,
  13. int? newCardIndex,
  14. int? newCardListIndex,
  15. dynamic onListLongPress(
    1. int? listIndex
    )?,
  16. int? dragItemIndex,
  17. TextStyle? textStyle,
  18. Color? backgroundColor = Colors.white,
  19. Color? cardPlaceholderColor,
  20. Color? listPlaceholderColor,
  21. Widget cardTransitionBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  22. Widget listTransitionBuilder(
    1. Widget child,
    2. Animation<double> animation
    )?,
  23. Decoration? listDecoration,
  24. Decoration? boardDecoration,
  25. int? dragItemOfListIndex,
  26. bool isElementDragged = false,
  27. Duration cardTransitionDuration = const Duration(milliseconds: 150),
  28. Duration listTransitionDuration = const Duration(milliseconds: 150),
  29. bool isListDragged = false,
})

Implementation

BoardState(
    {required this.lists,
    required this.controller,
    this.dragListIndex,
    this.onItemTap,
    this.onItemLongPress,
    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);
}