align method

Widget align(
  1. Alignment alignment, {
  2. double? widthFactor,
  3. double? heightFactor,
})

Wraps this widget with an Align widget.

Implementation

Widget align(
  Alignment alignment, {
  double? widthFactor,
  double? heightFactor,
}) =>
    Align(
      alignment: alignment,
      widthFactor: widthFactor,
      heightFactor: heightFactor,
      child: this,
    );