getIdStringByPlatform static method

String? getIdStringByPlatform({
  1. required String androidId,
  2. required String testAndroidId,
  3. required String iosId,
  4. required String testIosId,
  5. bool isTest = true,
})

Implementation

static String? getIdStringByPlatform({required String androidId, required String testAndroidId, required String iosId, required String testIosId, bool isTest = true}) {
  if (Platform.isAndroid) {
    return getIdString(id: androidId, testId: testAndroidId, isTest: isTest);
  } else if (Platform.isIOS) {
    return getIdString(id: iosId, testId: testIosId, isTest: isTest);
  } else {
    return null;
  }
}