save method

Future<void> save(
  1. StepData data
)

Implementation

Future<void> save(StepData data) async {
  _lastSaveTime = TZDateTime.now(_timezone);
  SharedPreferences preferences = await SharedPreferences.getInstance();
  final json = jsonEncode(data.toJson());
  print("DailyPedometerStorage save : $json");
  await preferences.setString(storageKey, json);
}