currentDateTimeProvider top-level property
final
Provides a use case that returns a reference current DateTime which can be used by the app wherever a current date time is needed.
By default, the resulting usecase returns January 1, 2023 at 00:00:00.00 as the reference current date time. For a real implementation that uses DateTime.now, consider using realDateTimeOverrides.
Implementation
final currentDateTimeProvider = Provider<CurrentDateTimeUseCase>(
(ref) => const FakeCurrentDateTimeUseCase(),
);