VerificationResult class Null safety

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.


callCount int
The number of calls matched in this verification.
read / write
captured List
List of all arguments captured in real calls. [...]
@Deprecated('captured should be considered final - assigning this field may be ' 'removed as early as Mockito 5.0.0'), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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


operator ==(Object other) bool
The equality operator. [...]