RelativePositionedTransition constructor

const RelativePositionedTransition({
  1. Key? key,
  2. required Animation<Rect?> rect,
  3. required Size size,
  4. required Widget child,
})

Create an animated version of Positioned.

Each frame, the Positioned widget will be configured to represent the current value of the rect argument assuming that the stack has the given size.

Implementation

const RelativePositionedTransition({
  super.key,
  required Animation<Rect?> rect,
  required this.size,
  required this.child,
}) : super(listenable: rect);