toInstant method

Instant toInstant()

Converts this offset date and time to an instant in time by subtracting the offset from the local date and time.

Returns: The instant represented by this offset date and time

Implementation

Instant toInstant() => IInstant.untrusted(_toElapsedTimeSinceEpoch());