getMap<K, V> method

Map<K, V> getMap <K, V>(String key)

Get a property's value as a Map Object, which is a mapping object of a dictionary value. Returns null if the property doesn't exists, or its value is not a dictionary.

  • Parameter key: The key.
  • Returns: The Map Object object or nil.

Implementation

Map<K, V> getMap<K, V>(String key) {
  var _result = getValue(key);
  if (_result is Map) {
    return Map.unmodifiable(Map.castFrom<dynamic, dynamic, K, V>(_result));
  }

  return null;
}