plantAll method

void plantAll(
  1. Iterable<Tree> trees
)

Add a new logging tree.

Implementation

void plantAll(Iterable<Tree> trees) {
  for (var tree in trees) {
    checkNotNull(tree);
    checkArgument(tree != this, message: 'Cannot plant Timber into itself.');
  }
  _lock.synchronized(() => _trees.addAll(trees));
}