TimeRange class

The value held by TimeController.

Annotations

Constructors

TimeRange(Duration startTime, Duration endTime)
TimeRange.centeredAround(Duration center, Duration duration, {bool canShiftIfDoesntFit = true})
factory
TimeRange.fromStartAndDuration(Duration startTime, Duration duration)
factory

Properties

centerTime Duration
no setter
duration Duration
no setter
endTime Duration
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime Duration
final

Methods

contains(TimeRange other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Properties

fullDay TimeRange
final

Static Methods

lerp(TimeRange a, TimeRange b, double t) TimeRange