display hash in tokens

This commit is contained in:
fuwa
2019-12-02 18:20:36 +08:00
parent 694bd75d61
commit 0d49f91fd1
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -33,6 +33,6 @@ const emuHost = '192.168.10.100';
const host = isEmu ? emuHost : '127.0.0.1';
const int hashLength = 12;
const int hashViewBlock = 6;
const stdoutLineBufferSize = 100;
+6 -1
View File
@@ -32,7 +32,12 @@ String pretty(dynamic x) {
;
}
String trimHash(String x) => x.substring(0, config.hashLength) + ' ...';
String trimHash(String x) =>
x.substring(0, config.hashViewBlock)
+ '-'
+ x.substring(config.hashViewBlock, config.hashViewBlock * 2)
+ ' ...';
Map<String, dynamic> cleanKey(Map<String, dynamic> x) {
final _cleaned = x.map
(