TithiSegment class

A contiguous span of a single tithi within an enumeration window.

Returned by TithiCalculator.tithiSegments / Panchang.tithiSegments. The window is partitioned by every tithi transition inside it, so N transitions yield N+1 segments. startUtc/endUtc are clipped to the window edges; startIsTransition/endIsTransition indicate whether that edge is a real tithi boundary (true) or just the window clip (false).

Constructors

TithiSegment({required DateTime startUtc, required DateTime endUtc, required TithiInfo tithi, required bool startIsTransition, required bool endIsTransition})
const

Properties

endIsTransition bool
final
endUtc DateTime
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startIsTransition bool
final
startUtc DateTime
final
tithi TithiInfo
final

Methods

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.
inherited