getAppleHealthElement method

Future<AppleHealthElement?> getAppleHealthElement(
  1. String id
)

Implementation

Future<AppleHealthElement?> getAppleHealthElement(String id) async {
  try {
    return appleHealthElementBox!.values
        .firstWhere((element) => element.id == id);
  } catch (_) {}
  return null;
}