initState method
isOnlyLongPress
is Accepts 'true' and 'false'
If, it is true then only draggable works with long press.
and if it is false then it works with simple press.
Implementation
@override
void initState() {
super.initState();
assert(widget.children.isNotEmpty, 'Children must not be empty.');
/// [list] will update when the widget is begin dragged.
_list = [...widget.children];
/// [orgList] will set when the drag completes.
_orgList = [...widget.children];
_isOnlyLongPress = widget.isOnlyLongPress;
}