offsetFromLayoutOffset function
Converts a LayoutOffset to a Flutter Offset.
Creates a Flutter Offset from the dx and dy coordinates of a LayoutOffset.
Implementation
Offset offsetFromLayoutOffset(LayoutOffset offset) {
return Offset(offset.dx, offset.dy);
}