getString method
Gets a property's value as a string. Returns null if the property doesn't exist, or its value is not a string.
- Parameter key: The key.
- Returns: The String object or null.
Implementation
String getString(String key) {
Object _result = getValue(key);
return _result is String ? _result : null;
}