BoxConstraints.tightFor constructor

const BoxConstraints.tightFor({
  1. int? width,
  2. int? height,
})

Creates box constraints that require the given width or height.

Implementation

const BoxConstraints.tightFor({int? width, int? height})
  : minWidth = width ?? 0,
    maxWidth = width ?? 999999,
    minHeight = height ?? 0,
    maxHeight = height ?? 999999;