When<T> class
Result of when which enables methods to be stubbed via
Constructors
- When()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
thenAnswer(
Answer< T> answer) → void - Store a function which is called when this method stub is called.
-
thenReturn(
T expected) → void - Store a canned response for this method stub.
-
thenThrow(
Object throwable) → void - Store an exception to throw when this method stub is called.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited