Cassette class
A class representing a cassette that contains a list of HttpInteraction
s.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the cassette.
final
- numberOfInteractions → int
-
Returns the number of interactions in the cassette.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
erase(
) → void - Deletes the cassette file.
-
lock(
) → void - Locks the cassette so that it cannot be written to.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → List< HttpInteraction> -
Returns a list of all
HttpInteraction
s in the cassette. -
toString(
) → String -
A string representation of this object.
inherited
-
unlock(
) → void - Unlocks the cassette so that it can be written to.
-
update(
HttpInteraction interaction) → void -
Adds or overwrites the given
interaction
to the cassette.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited