AnimatedPositioned.fromRect constructor
AnimatedPositioned.fromRect({})
Creates a widget that animates the rectangle it occupies implicitly.
Implementation
AnimatedPositioned.fromRect(
{super.key,
required this.child,
required Rect rect,
this.curve = Curves.linear,
required this.duration,
this.onEnd})
: left = rect.left,
top = rect.top,
width = rect.width,
height = rect.height,
right = null,
bottom = null;