isMapExists static method
Implementation
static bool isMapExists({required List<String> key, required Map map}) {
for (var currentKey in key) {
if (map.containsKey(currentKey)) {
if (map[currentKey] != null) {
if (map[currentKey].toString() == '') {
developer.log(
currentKey + ' is empty value',
);
}
developer.log(
currentKey + ' has value $map[currentKey]',
);
} else {
developer.log('Error', error: currentKey + ' is null value');
return false;
}
} else {
developer.log('Error', error: currentKey + ' is not found');
return false;
}
}
return true;
}