OnMissingStub enum
Values indicating the action to perform when a real call is made to a mock method (or getter) when no stub is found.
Values
- throwException → const OnMissingStub
-
An exception should be thrown.
- returnDefault → const OnMissingStub
-
A legal default value should be returned.
For basic known types, like
int
andFuture<String>
, a simple value is returned (like0
andFuture.value('')
). For unknown user types, an instance of a fake implementation is returned.
Properties
Methods
-
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
Constants
-
values
→ const List<
OnMissingStub> - A constant List of the values in this enum, in order of their declaration.