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.

Inheritance

Constructors

OnMissingStub()
const

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 and Future<String>, a simple value is returned (like 0 and Future.value('')). For unknown user types, an instance of a fake implementation is returned.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
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.