align method

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

Aligns this widget within the available space.

Directional alignment values require ambient Directionality. Non-null size factors must be non-negative.

Implementation

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