GenerateMocktailFallbackValues class Null safety
generate method with registerFallbackValues
calls,
this is needed to make the any()
function work in mocktail](https://pub.dev/packages/mocktail).
Constructors
-
GenerateMocktailFallbackValues(List<
Type> types, {bool autoDetect = false}) -
const
Properties
- autoDetect → bool
-
Register a mock class for all the non primitive parameters of all the methods in each class of GenerateMocker.types
Classes with type parameters will be ignored.
If a class didn't get picked up, please add it manually in types.
Find the generated method in
<filename>.fallback.dart
.final - hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
types
→ List<
Type> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited