align method

Align align(
  1. Alignment alignment, {
  2. Key? key,
  3. double? heightFactor,
  4. double? widthFactor,
})

Wraps the widget in an Align widget with the specified alignment.

Implementation

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