Children.withBlocks constructor

Children.withBlocks(
  1. List<Block> blocks
)

Constructor that initialize a Children instance with a list of blocks.

Receive a list of blocks and avoid create first the Children instance and then add the blocks.

Implementation

Children.withBlocks(List<Block> blocks) {
  this._blocks.addAll(blocks);
}