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