clearTotalSteps method

  1. @override
Future<bool> clearTotalSteps()
override

Implementation

@override
Future<bool> clearTotalSteps() async {
  if (_sessions.isEmpty && !_isTracking) {
    _totalSteps = 0;
    await _saveTotalSteps();
    return true;
  }
  debugPrint(
      'Session history not empty or tracking is active - skipping clear');
  return false;
}