DSLimitedBlock constructor

const DSLimitedBlock({
  1. Key? key,
  2. int groupId = -1,
  3. required double groupMaxHeight,
  4. required double calcHeight(
    1. BuildContext context,
    2. double screenWidth,
    3. double scale
    ),
  5. required Widget builder(
    1. BuildContext context,
    2. double scale
    ),
  6. double groupMaxWidth = double.maxFinite,
  7. double minScale = 0.3,
  8. Size calcSize(
    1. BuildContext context,
    2. double scale
    )?,
})

Implementation

const DSLimitedBlock({
  super.key,
  this.groupId = -1,
  required this.groupMaxHeight,
  required this.calcHeight,
  required this.builder,
  this.groupMaxWidth = double.maxFinite,
  this.minScale = 0.3,
  this.calcSize,
}): assert(minScale > 0);