GroupElement constructor
GroupElement({
- required List<
TextElement> textElements, - required DirectionGroup directionGroup,
- EdgeInsets? padding,
- EdgeInsets? margin,
- BoxDecoration? decoration,
- DecorationElement? commonDecorationElements,
- Color backgroundColor = Colors.white,
- 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");