exist method

bool exist(
  1. String key
)

if type is map && contains this key return true, otherwise return false

Implementation

bool exist(String key) {
  if (_type != Type.map) return false;
  return _rawMap.containsKey(key);
}