startFetch method

void startFetch()

Prepares the manager for a new fetch operation.

Call this before starting the FetchMeasurementCommand.

Implementation

void startFetch() {
  _buffer.clear();
  _hasReceivedData = false;
  isActive = true;

  emitProgress(FetchProgress.inProgress(
    receivedBytes: 0,
  ));
}