alignment method

Widget alignment(
  1. AlignmentGeometry alignment, {
  2. Key? key,
  3. bool animate = false,
})

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,
          );