centerInClip property

bool get centerInClip

True when the centre sits inside the nearest scroll viewport (or there is none).

Implementation

bool get centerInClip {
  final c = clip;
  if (c == null) return true;
  return logicalCenter.x >= c.x &&
      logicalCenter.y >= c.y &&
      logicalCenter.x < c.x + c.w &&
      logicalCenter.y < c.y + c.h;
}