getTodaysCount method

Future<int> getTodaysCount()

Gets the step count for today (current date).

Returns the total number of steps recorded for the current day. The day boundary is determined by the device's local timezone.

Returns 0 if no steps have been recorded today or if step data is not available.

Example:

final todaySteps = await stepsCount.getTodaysCount();
print('Steps today: $todaySteps');

Implementation

Future<int> getTodaysCount() {
  return StepsCountPlatform.instance.getTodaysCount();
}