getPropertyAsStringTrim method

String? getPropertyAsStringTrim(
  1. String key, [
  2. String? def
])

Gets a property with key. Returns the value trimmed.

def The default value if key not found.

Implementation

String? getPropertyAsStringTrim(String key, [String? def]) {
  var val = getPropertyAsString(key, def);
  return val?.trim();
}