Align constructor

const Align(
  1. {Key key,
  2. AlignmentGeometry alignment: Alignment.center,
  3. double widthFactor,
  4. double heightFactor,
  5. Widget child}
)

Creates an alignment widget.

The alignment defaults to Alignment.center.

Implementation

const Align({
  Key key,
  this.alignment = Alignment.center,
  this.widthFactor,
  this.heightFactor,
  Widget child,
}) : assert(alignment != null),
     assert(widthFactor == null || widthFactor >= 0.0),
     assert(heightFactor == null || heightFactor >= 0.0),
     super(key: key, child: child);