Instant class
An instant with a timestamp.
Constructors
- Instant(DateTime time)
-
Creates an instant with a
time
stamp.const - Instant.parse(String text)
-
Creates an instant from a string.
factory
Properties
Methods
-
copyWith(
{DateTime? time}) → Instant -
Copy this instant with an optional
time
changed. -
isAfterTime(
DateTime time) → bool -
Returns true if this occurs fully after
time
.override -
isBeforeTime(
DateTime time) → bool -
Returns true if this occurs fully before
time
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this temporal object.
override
-
toUtc(
) → Instant -
Returns this temporal object in the UTC time zone.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override