Set the Mode of the VCR to Mode.auto.
final vcr = VCR(); vcr.recordIfNeeded();
void recordIfNeeded() { mode = Mode.auto; }