ColumnWidget constructor

const ColumnWidget({
  1. Key? key,
  2. required KanbanColumn column,
  3. required KanbanColumnTheme theme,
  4. dynamic onAddTask()?,
  5. dynamic onReorderedTask(
    1. KanbanColumn column,
    2. int oldIndex,
    3. int newIndex
    )?,
  6. dynamic onTaskDropped(
    1. KanbanColumn source,
    2. int sourceIndex,
    3. KanbanColumn destination, [
    4. int? destinationIndex,
    ])?,
  7. dynamic onDeleteTask(
    1. KanbanColumn column,
    2. int index
    )?,
  8. dynamic onEditTask(
    1. KanbanColumn column,
    2. int index,
    3. String initialTitle,
    4. String initialSubtitle,
    )?,
  9. dynamic onClearDone()?,
  10. double? mobileMaxHeight = KanbanColumnLayout.defaultMobileMaxHeight,
})

Creates a ColumnWidget with the given parameters.

The column and theme parameters are required, while all callbacks are optional.

Implementation

const ColumnWidget({
  super.key,
  required this.column,
  required this.theme,
  this.onAddTask,
  this.onReorderedTask,
  this.onTaskDropped,
  this.onDeleteTask,
  this.onEditTask,
  this.onClearDone,
  this.mobileMaxHeight = KanbanColumnLayout.defaultMobileMaxHeight,
}) : super();