UtcDateFormatLocalizeUseCase class

Localizes the date using DateFormat.format, but converts the date to UTC first instead of using the current machine's timezone.

Useful for tests where the platform's timezone may differ.

Implemented types

Constructors

UtcDateFormatLocalizeUseCase()
const

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

call(DateTime date, String pattern, [String? locale]) String
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