BoxConstraints constructor Null safety

const BoxConstraints(
  1. {@Default(0.0) double minWidth,
  2. @Default(double.infinity) double maxWidth,
  3. @Default(0.0) double minHeight,
  4. @Default(double.infinity) double maxHeight}
)

Implementation

const factory BoxConstraints({
  @Default(0.0) double minWidth,
  @Default(double.infinity) double maxWidth,
  @Default(0.0) double minHeight,
  @Default(double.infinity) double maxHeight,
}) = _BoxConstraints;