copyValuesFrom method

void copyValuesFrom(
  1. covariant CachedIndicator<T> other
)

Copies the result of other as its own.

Implementation

void copyValuesFrom(covariant CachedIndicator<T> other) {
  if (!identical(this, other)) {
    results
      ..clear()
      ..addAll(other.results);
    lastResultIndex = other.lastResultIndex;
  }
}