BoxConstraints.tightForFinite constructor

const BoxConstraints.tightForFinite({
  1. double width = double.infinity,
  2. double height = double.infinity,
})

Implementation

const BoxConstraints.tightForFinite({
  double width = double.infinity,
  double height = double.infinity,
})  : minWidth = width != double.infinity ? width : 0.0,
      maxWidth = width != double.infinity ? width : double.infinity,
      minHeight = height != double.infinity ? height : 0.0,
      maxHeight = height != double.infinity ? height : double.infinity;