CustomTimeRange class

Inheritance
Implementers

Constructors

CustomTimeRange(DateTime from, DateTime to)
The timezone is assumed by the from passed in here.
const

Properties

duration Duration
no setterinherited
from DateTime
final
hashCode int
The hash code for this object.
no setterinherited
isUtc bool
Returns if from is in UTC timezone.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to DateTime
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() CustomTimeRange
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