YearTimeRange class

Inheritance

Constructors

YearTimeRange(int year, {bool isUtc = false})
const
YearTimeRange.fromDateTime(DateTime dateTime)
Will preserve the timezone of dateTime
factory

Properties

duration Duration
no setterinherited
from DateTime
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isUtc bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to DateTime
no setteroverride
year int
final

Methods

contains(DateTime dateTime) bool
Returns true if dateTime is between from and to (inclusive)
inherited
containsRange(TimeRange timeRange) bool
Returns true if this contains timeRange
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