parsePropertiesEncodedEntries static method
Implementation
static List<MapEntry<String, dynamic>> parsePropertiesEncodedEntries(
String properties) {
var lines = properties.split(_regexpLineBreak);
var l = lines.expand((l) {
if (_regexpKeyLine.hasMatch(l)) {
var idx = l.indexOf(_regexpKeyDelimiter);
var k = l.substring(0, idx).trim();
var v = l.substring(idx + 1);
var val = _parseJsonValue(v);
return <MapEntry<String, dynamic>>[MapEntry(k, val)];
} else {
return <MapEntry<String, dynamic>>[];
}
}).toList();
return l;
}