positionedTransition method

Widget positionedTransition({
  1. required Animation<RelativeRect> rect,
  2. Key? key,
})

Animated version of Positioned which takes a specific Animation

Only works if it's the child of a Stack.

Implementation

Widget positionedTransition({
  required Animation<RelativeRect> rect,
  Key? key,
}) {
  return PositionedTransition(
    key: key,
    rect: rect,
    child: this,
  );
}