isDataTypeAvailable method

bool isDataTypeAvailable(
  1. HealthDataType dataType
)

Check if a given data type is available on the platform

Implementation

bool isDataTypeAvailable(HealthDataType dataType) =>
    _platformType == PlatformType.ANDROID
        ? _dataTypeKeysAndroid.contains(dataType)
        : _dataTypeKeysIOS.contains(dataType);