unConstrained method
Widget
unConstrained({
- Key? key,
- TextDirection? textDirection,
- AlignmentGeometry alignment = Alignment.center,
- Axis? constrainedAxis,
- Clip clipBehavior = Clip.none,
取消父级约束
Implementation
Widget unConstrained({
Key? key,
TextDirection? textDirection,
AlignmentGeometry alignment = Alignment.center,
Axis? constrainedAxis,
Clip clipBehavior = Clip.none,
}) =>
UnconstrainedBox(
key: key,
textDirection: textDirection,
alignment: alignment,
constrainedAxis: constrainedAxis,
clipBehavior: clipBehavior,
child: this,
);