build method
Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).
Implementation
@override
Widget build(BuildContext context) {
final alignmentDirect = axis == Axis.vertical
? AlignmentDirectional(-1.0, axisAlignment)
: AlignmentDirectional(axisAlignment, -1.0);
return ClipRect(
child: Align(
alignment: alignment ?? alignmentDirect,
heightFactor:
axis == Axis.vertical ? math.max(sizeFactor.value, 0.0) : null,
widthFactor:
axis == Axis.horizontal ? math.max(sizeFactor.value, 0.0) : null,
child: child,
),
);
}