none static method

Offset none(
  1. Size view,
  2. FPortalTarget target,
  3. FPortalFollower follower
)

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

Implementation

static Offset none(Size view, FPortalTarget target, FPortalFollower follower) {
  final targetAnchor = target.anchor.relative(to: target.size);
  final followerAnchor = follower.anchor.relative(to: follower.size);
  return targetAnchor - followerAnchor;
}