VCR class
A VCR can store consistent settings and control a cassette.
Constructors
- VCR({AdvancedOptions? advancedOptions})
- Creates a new VCR with the given AdvancedOptions. The mode defaults to Mode.bypass.
Properties
- advancedOptions ↔ AdvancedOptions?
-
The AdvancedOptions the VCR is currently using during requests.
getter/setter pair
- cassetteName → String?
-
Get the name of the current Cassette, or null if there is no cassette.
no setter
- client → DartVCRClient
-
Get a configured DartVCRClient with the current AdvancedOptions, Mode and Cassette.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode ↔ Mode
-
The mode that the VCR is currently in.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
eject(
) → void - Unload the current Cassette.
-
erase(
) → void - Delete all recorded interactions from the current Cassette.
-
insert(
Cassette cassette) → void - Load a Cassette.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Set the Mode of the VCR to Mode.bypass.
-
record(
) → void - Set the Mode of the VCR to Mode.record.
-
recordIfNeeded(
) → void - Set the Mode of the VCR to Mode.auto.
-
replay(
) → void - Set the Mode of the VCR to Mode.replay.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited