Align constructor
const
Align({
- Key? key,
- AlignmentGeometry alignment = Alignment.center,
- double? widthFactor,
- double? heightFactor,
- Widget? child,
Creates an alignment widget.
The alignment defaults to Alignment.center.
Implementation
const Align(
{super.key,
this.alignment = Alignment.center,
this.widthFactor,
this.heightFactor,
this.child})
: assert(widthFactor == null || widthFactor >= 0.0),
assert(heightFactor == null || heightFactor >= 0.0);