YearTimeRange class
Constructors
- YearTimeRange(int year, {bool isUtc = false})
-
const
- YearTimeRange.fromDateTime(DateTime dateTime)
-
Will preserve the timezone of
dateTime
factory
Properties
Methods
-
contains(
DateTime dateTime) → bool -
Returns true if
dateTime
is between from and to (inclusive)inherited -
containsRange(
TimeRange timeRange) → bool -
Returns true if
this
containstimeRange
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUtc(
) → YearTimeRange -
Unless you're using CustomTimeRange, this will always keep the
properties like year,
month
the same.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited