hasKey method

bool hasKey(
  1. String path, [
  2. String? key
])

Implementation

bool hasKey(String path, [String? key]) {
  if (key == null) return data.containsKey(path);
  dynamic value = _MapUtils.mapListWalker(data, path);
  return value is Map && value.containsKey(key);
}