ResponsiveSliverConstraint.ofBox constructor

ResponsiveSliverConstraint.ofBox({
  1. Key? key,
  2. required Widget child,
  3. ResponsiveSliverMaxWidth? calculated,
  4. double maxWidth = kDefaultResponsiveWidth,
})

Implementation

ResponsiveSliverConstraint.ofBox({
  Key? key,
  required Widget child,
  this.calculated,
  this.maxWidth = kDefaultResponsiveWidth,
})  : sliver = sliverBox(child),
      super(key: key);