hasLocalBounds function

RelativePositionAssert hasLocalBounds(
  1. Rect rect,
  2. String parentTraitId
)

Returns a [RelativePositionAssert with the given bounds within the parents bounds.

Implementation

RelativePositionAssert hasLocalBounds(Rect rect, String parentTraitId) =>
    RelativePositionAssert.parent(
      traitId: parentTraitId,
      left: rect.left,
      top: rect.top,
      right: rect.right,
      bottom: rect.bottom,
    );