BoxConstraints.expand constructor

const BoxConstraints.expand({
  1. double? width,
  2. double? height,
})

Creates box constraints that expand to fill another box constraints.

Implementation

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