FakeCurrentDateTimeUseCase class

Implementation of a current date time use case that returns dateTime, or January 1, 2023 at 00:00:00.00 if dateTime is null. This is useful for tests which need a fixed reference date time. Consider using NowCurrentDateTimeUseCase for a real implementation

Implemented types

Constructors

FakeCurrentDateTimeUseCase([DateTime? dateTime])
const

Properties

dateTime DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() DateTime
override
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