tightConstrainedFor method

ConstrainedBox tightConstrainedFor({
  1. Key? key,
  2. double? w,
  3. double? h,
})

Implementation

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