clone method

  1. @override
BatchFlow<I, O> clone()
override

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);
}