getGoogleHealthConnectElement method

Future<GoogleHealthConnectElement?> getGoogleHealthConnectElement(
  1. String id
)

Implementation

Future<GoogleHealthConnectElement?> getGoogleHealthConnectElement(
    String id) async {
  try {
    return googleHealthConnectElementBox!.values
        .firstWhere((element) => element.id == id);
  } catch (_) {}
  return null;
}