build method

  1. @override
Widget build(
  1. BuildContext context,
  2. _PositionedAnimatableParameters? parameters
)
override

Builds this widget with the AnimatableParameters.

Only if an animation has been applied will parameters be non-null. If parameters is null, the widget should be built without animation. If parameters is non-null, the widget should use the AnimatableParameter.animatedValues.

Implementation

@override
Widget build(
  BuildContext context,
  _PositionedAnimatableParameters? parameters,
) {
  return Positioned(
    left: parameters?.left.animatedValue ?? left,
    top: parameters?.top.animatedValue ?? top,
    right: parameters?.right.animatedValue ?? right,
    bottom: parameters?.bottom.animatedValue ?? bottom,
    width: parameters?.width.animatedValue ?? width,
    height: parameters?.height.animatedValue ?? height,
    child: child,
  );
}