hasLocalOffset function
Returns a RelativePositionAssert with the given offset within the parents bounds.
Implementation
RelativePositionAssert hasLocalOffset(Offset offset, String parentTraitId) =>
RelativePositionAssert.parent(
traitId: parentTraitId,
left: offset.dx,
top: offset.dy,
);