CompositeMessage constructor

CompositeMessage(
  1. List<Message>? pieces,
  2. ComplexMessage? parent
)

Implementation

CompositeMessage(this.pieces, ComplexMessage? parent) : super(parent) {
  pieces!.forEach((x) => x.parent = this);
}