BoardState constructor
BoardState({
- required List<
BoardList> lists, - required ScrollController controller,
- int? dragListIndex,
- dynamic onItemTap()?,
- dynamic onItemLongPress()?,
- ScrollConfig? boardScrollConfig,
- ScrollConfig? listScrollConfig,
- VoidCallback? setstate,
- dynamic onListTap(
- int? listIndex
- void onItemReorder()?,
- void onListReorder()?,
- void onListRename()?,
- void onNewCardInsert()?,
- double? displacementX,
- double? displacementY,
- int? newCardIndex,
- int? newCardListIndex,
- dynamic onListLongPress(
- int? listIndex
- int? dragItemIndex,
- TextStyle? textStyle,
- Color? backgroundColor = Colors.white,
- Color? cardPlaceholderColor,
- Color? listPlaceholderColor,
- Widget cardTransitionBuilder()?,
- Widget listTransitionBuilder()?,
- Decoration? listDecoration,
- Decoration? boardDecoration,
- int? dragItemOfListIndex,
- bool isElementDragged = false,
- Duration cardTransitionDuration = const Duration(milliseconds: 150),
- Duration listTransitionDuration = const Duration(milliseconds: 150),
- 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);
}