ViewMeasuredSizes constructor

const ViewMeasuredSizes({
  1. required int preferredWidth,
  2. required int preferredHeight,
  3. int? minWidth,
  4. int? minHeight,
})

Create a new ViewSizes.

preferredWidth the component's preferred width. preferredHeight the component's preferred width. minWidth the component's minimum width. If not set, default to 0. minHeight the component's minimum height. If not set, default to 0.

Implementation

const ViewMeasuredSizes(
    {required this.preferredWidth,
    required this.preferredHeight,
    int? minWidth,
    int? minHeight})
    : minWidth = minWidth ?? 0,
      minHeight = minHeight ?? 0;