display hash in tokens

pull/3/head
fuwa 4 years ago
parent 694bd75d61
commit 0d49f91fd1

@ -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;

@ -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
(