currentRect property

Rect? get currentRect

Interpolated rect at the current progress (origin → target).

Implementation

Rect? get currentRect {
  final o = _origin;
  final t = _targetRect;
  if (o == null || t == null) return null;
  return MorphEngine.morphRect(_state.progress, o.rect, t);
}