getDailySteps method

int getDailySteps(
  1. TZDateTime now
)

Implementation

int getDailySteps(TZDateTime now) {
  if (formatDate(now) != todayDate) {
    return 0;
  }
  final accStepCount = todayStepCount + stack.fold(0, (a, b) => a + b) as int;
  return accStepCount - previousStepCount;
}