TimelineScale class sealed

A slot length: minutes dividing a day (TimelineScale.minutes) or whole days (TimelineScale.day).

Implementers

Constructors

TimelineScale.minutes(int minutes)
Minutes per slot, dividing 1440 (5, 10, 15, 20, 30, 60, 120…). Not checked here, so it can be const: buildTimelineAxis throws on one that does not divide a day (configuration, the programmer's mistake).
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Whether the axis can cut a day into it.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

tryMinutes(int minutes) → TimelineScale?
A scale from data (an option, a JSON setting): null when minutes does not divide a day — the web then takes defaultScale.

Constants

day → const DayScale