TimelineModel class
Model representing a step count entry with timestamp
Constructors
- TimelineModel({required int stepCount, required int timestamp})
-
Creates a new TimelineModel instance
const
-
TimelineModel.fromMap(Map<
String, dynamic> map) -
Creates a TimelineModel from a Map (typically from native platform)
factory
Properties
- dateTime → DateTime
-
Gets the DateTime representation of the timestamp in local timezone
no setter
- dateTimeUtc → DateTime
-
Gets the DateTime representation of the timestamp in UTC
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepCount → int
-
Number of steps recorded
final
- timestamp → int
-
Timestamp when the steps were recorded (in milliseconds since epoch)
final
Methods
-
getDateTime(
TimeZoneType timeZone) → DateTime - Gets the DateTime representation based on the specified timezone type
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this TimelineModel to a Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override