Cassette class

A class representing a cassette that contains a list of HttpInteractions.

Constructors

Cassette(dynamic folderPath, String name)
Creates a new Cassette with the given name and folderPath.

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 HttpInteractions 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