DragAndDropItem<T> constructor

DragAndDropItem<T>({
  1. required String key,
  2. required T content,
  3. List<DragAndDropItem<T>>? children,
})

Implementation

DragAndDropItem({
  required this.key,
  required this.content,
  List<DragAndDropItem<T>>? children,
}) : children =
          children != null ? List<DragAndDropItem<T>>.from(children) : [];