ipfsCid property
String
get
ipfsCid
Implementation
String get ipfsCid {
if (flags.attachements) {
var f = body.split(' ');
var cid = '';
f.forEach((element) {
if (element.startsWith('!&')) {
//might be followed immediately with another !| or..
final bobo = element.split('!');
cid = bobo[1].substring(1, bobo[1].length);
}
});
if (cid == '*') return '';
return cid;
}
return '';
}