isDataTypeAvailable method

bool isDataTypeAvailable(
  1. HealthDataType dataType
)

Check if a given data type is available on the platform

Implementation

bool isDataTypeAvailable(HealthDataType dataType) => Platform.isAndroid
    ? dataTypeKeysAndroid.contains(dataType)
    : dataTypeKeysIOS.contains(dataType);