alignment method
Implementation
Widget alignment(
AlignmentGeometry alignment, {
Key? key,
bool animate = false,
}) =>
animate
? Builder(
key: key,
builder: (BuildContext context) {
_StyledAnimatedModel animation = this._getAnimation(context);
return AnimatedAlign(
child: this,
alignment: alignment,
duration: animation.duration,
curve: animation.curve,
);
},
)
: Align(
key: key,
alignment: alignment,
child: this,
);