convertAppleHealthTimestampToDateTime function

dynamic convertAppleHealthTimestampToDateTime(
  1. num timestamp
)

Implementation

convertAppleHealthTimestampToDateTime(num timestamp) {
  final newTimestamp = timestamp * 1000;
  return DateTime.fromMillisecondsSinceEpoch(
      int.parse(newTimestamp.toString().split('.')[0]));
}