DragDropItem constructor
DragDropItem({})
Implementation
DragDropItem(
{required this.key,
required this.value,
this.iconData,
this.dragChild,
this.dropChild,
this.feedbackItem,
this.childWhenDragging,
this.isAccepted = false,
this.defaultTextStyle}) {
feedbackItem = dragChild ?? Icon(iconData, size: 30, color: Colors.teal);
dragChild = dragChild ??
Text(key, style: TextStyle(fontSize: 20, color: Colors.red));
dropChild = dropChild ??
Text(value,
style: TextStyle(
fontSize: 20,
));
childWhenDragging = dragChild ??
Text(value,
style: TextStyle(
fontSize: 20,
));
this.defaultTextStyle = _defaultTextStyle;
}