aligned method
Widget
aligned({
- Key? key,
- AlignmentGeometry alignment = Alignment.center,
- double? widthFactor,
- double? heightFactor,
A widget that aligns its child within itself and optionally sizes itself based on the child's size.
Implementation
Widget aligned({
Key? key,
AlignmentGeometry alignment = Alignment.center,
double? widthFactor,
double? heightFactor,
}) {
return Align(
key: key,
alignment: alignment,
widthFactor: widthFactor,
heightFactor: heightFactor,
child: this,
);
}