SmartFake class

A slightly smarter fake to be used for return value on missing stubs. Shows a more descriptive error message to the user that mentions not only a place where a fake was used but also why it was created (i.e. which stub needs to be added).

Inspired by Java's Mockito SmartNull.

Constructors

SmartFake(Object _parent, Invocation _parentInvocation)

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.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object? other) bool
The equality operator.
override