StepData class
Constructors
-
StepData(String? previousDate, int previousStepCount, String? todayDate, int todayStepCount, int? bootCount, List<
int> stack, String? lastSavedAt, String? previousStepCountSavedAt) - StepData.accumulate(StepData stepData, StepCountWithTimestamp stepCount)
- StepData.empty()
-
StepData.fromJson(Map<
String, dynamic> json) - StepData.initialData(StepCountWithTimestamp stepCount)
- StepData.newBoot(StepData stepData, StepCountWithTimestamp stepCount)
- StepData.shiftDate(StepData stepData, StepCountWithTimestamp stepCount)
Properties
- bootCount → int?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- lastSavedAt → String?
-
final
- previousDate → String?
-
final
- previousStepCount → int
-
final
- previousStepCountSavedAt → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stack
→ List<
int> -
final
- todayDate → String?
-
final
- todayStepCount → int
-
final
Methods
-
getDailySteps(
TZDateTime now) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
-
update(
StepCountWithTimestamp stepCount) → StepData
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- location ← Location?
-
no getter