unConstrained method

Widget unConstrained({
  1. Key? key,
  2. TextDirection? textDirection,
  3. AlignmentGeometry alignment = Alignment.center,
  4. Axis? constrainedAxis,
  5. 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,
    );