hasLocalOffset function

RelativePositionAssert hasLocalOffset(
  1. Offset offset,
  2. String parentTraitId
)

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,
    );