updatePosition method
Implementation
void updatePosition(DraggableDetails info, {bool complete = false}){
final x = info.offset.dx;
final y = info.offset.dy;
final towardsLeft = (x + (width/2)) < screenWidth/2;
top = y;
left = x;
right = null;
bottom = null;
_repositionForY(y);
if(towardsLeft){
_setToLeft();
}
else{
_setToRight();
}
if(complete == true){
this.completeAnimate();
}
}