getProps method
Implementation
Future<Map<String, String>> getProps({bool debug = false}) async {
return exec(['getprop'], debug: debug).then((result) {
final lines = result.stdout.toString().split('\n');
final props = <String, String>{};
for (final line in lines) {
final match = _kGetPropRegExp.firstMatch(line.trim());
if (match != null) {
props[match.group(1)!] = match.group(2)!;
}
}
return props;
});
}