copyFrom method

void copyFrom(
  1. OrbFrame other
)

Implementation

void copyFrom(OrbFrame other) {
  final needed = other._length * stride;
  if (_data.length < needed) {
    _data = Float64List(needed);
  }
  _data.setRange(0, needed, other._data);
  _length = other._length;
  _sortedLength = -1;
  _lineCount = 0;
  _appendLines(other, 1);
}