clone method
Creates a deep copy of this BatchFlow.
Implementation
@override
/// Creates a deep copy of this [BatchFlow].
BatchFlow<I, O> clone() {
final clonedNodes = _nodes.map((node) => node.clone()).toList();
return BatchFlow<I, O>(clonedNodes);
}