ConditionalMock class

Constructors

ConditionalMock({String version = '0.0.0', String localVersion = '0.0.0', bool isRequested = false, DateTime? firstDateTime, DateTime? nowDateTime, int calls = 0})
Set mock values for testing.
ConditionalMock.fromJson(String source)
factory
ConditionalMock.fromMap(Map<String, dynamic> map)
factory

Properties

calls int
Mock value from preferences.
final
firstDateTime DateTime
Mock value for the first time the app opened.
final
hashCode int
The hash code for this object.
no setterinherited
isRequested bool
Mark as requested/
final
localVersion String
Version that is in shared preferences.
final
nowDateTime DateTime
Mock value for now DateTime.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
Current version of the app.
final

Methods

copyWith({String? version, String? localVersion, bool? isRequested, DateTime? firstDateTime, DateTime? nowDateTime, int? calls}) ConditionalMock
Copy the ConditionalMock with specific changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited