Timeframe enum
Supported chart timeframes.
Values
- oneMinute → const Timeframe
-
const Timeframe(Duration(minutes: 1), '1m', '1 min') - threeMinutes → const Timeframe
-
const Timeframe(Duration(minutes: 3), '3m', '3 min') - fiveMinutes → const Timeframe
-
const Timeframe(Duration(minutes: 5), '5m', '5 min') - fifteenMinutes → const Timeframe
-
const Timeframe(Duration(minutes: 15), '15m', '15 min') - thirtyMinutes → const Timeframe
-
const Timeframe(Duration(minutes: 30), '30m', '30 min') - oneHour → const Timeframe
-
const Timeframe(Duration(hours: 1), '1H', '1 hour') - fourHours → const Timeframe
-
const Timeframe(Duration(hours: 4), '4H', '4 hours') - oneDay → const Timeframe
-
const Timeframe(Duration(days: 1), '1D', '1 day') - oneWeek → const Timeframe
-
const Timeframe(Duration(days: 7), '1W', '1 week')
Properties
- duration → Duration
-
final
- fullLabel → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortLabel → String
-
final
Methods
-
alignTimestamp(
DateTime dateTime) → DateTime -
Aligns a given
dateTimedown to the nearest start boundary for this timeframe. -
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