typeName property
String
get
typeName
Get type name as string
Implementation
String get typeName {
switch (type) {
case InvType.msgTx:
return 'tx';
case InvType.msgBlock:
return 'block';
case InvType.msgFilteredBlock:
return 'filtered_block';
case InvType.msgCmpctBlock:
return 'cmpct_block';
default:
return 'unknown';
}
}