tight method

Widget tight({
  1. double? width,
  2. double? height,
  3. Key? key,
})

约束 宽高

Implementation

Widget tight({
  double? width,
  double? height,
  Key? key,
}) =>
    ConstrainedBox(
      key: key,
      child: this,
      constraints: BoxConstraints.tightFor(width: width, height: height),
    );