add method

Implementation

SequentialProcessorBuilder<T> add(Operator<T> op) {
  SupportPreconditions.checkNotNull(op,
      message: 'Adding null Op is illegal.');
  _operatorList.add(op);

  String operatorName = op.runtimeType.toString();
  if (!_operatorIndex.containsKey(operatorName)) {
    _operatorIndex[operatorName] = <int>[];
  }
  _operatorIndex[operatorName]!.add(_operatorList.length - 1);
  return this;
}