none static method

Offset none(
  1. Size _,
  2. FPortalChildBox child,
  3. FPortalBox portal
)

Does not perform any shifting if the portal overflows out of the viewport.

Implementation

static Offset none(Size _, FPortalChildBox child, FPortalBox portal) {
  final childAnchor = child.anchor.relative(to: child.size);
  final portalAnchor = portal.anchor.relative(to: portal.size, origin: -portal.offset);
  return childAnchor - portalAnchor;
}