AnimatedPositionedModifier.fromRect constructor
AnimatedPositionedModifier.fromRect({})
Creates a widget that animates the rectangle it occupies implicitly.
The curve
and duration
arguments must not be null.
Implementation
AnimatedPositionedModifier.fromRect({
super.key,
super.child,
super.curve,
required super.duration,
super.onEnd,
super.modifierKey,
required Rect rect,
}) : left = rect.left,
top = rect.top,
width = rect.width,
height = rect.height,
right = null,
bottom = null;