VerificationResult class

Information about a stub call verification.

This class is most useful to users in two ways:

  • verifying call count, via called,
  • collecting captured arguments, via captured.

Properties

callCount ↔ int
The number of calls matched in this verification.
getter/setter pair
captured ↔ List
List of all arguments captured in real calls.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

called(dynamic matcher) → void
Assert that the number of calls matches matcher.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited