GroupElement constructor

GroupElement({
  1. required List<TextElement> textElements,
  2. required DirectionGroup directionGroup,
  3. EdgeInsets? padding,
  4. EdgeInsets? margin,
  5. BoxDecoration? decoration,
  6. DecorationElement? commonDecorationElements,
  7. Color backgroundColor = Colors.white,
  8. List<double> sizeElements = const [],
})

Implementation

GroupElement({
  required this.textElements,
  required this.directionGroup,
  this.padding,
  this.margin,
  this.decoration,
  this.commonDecorationElements,
  this.backgroundColor = Colors.white,
  this.sizeElements = const [],
}) : assert(sizeElements.isEmpty || sizeElements.reduce((a, b) => a + b) <= 1,
          "max sum size of elements is 1");