root property
ModeratorEntry?
get
root
Implementation
ModeratorEntry? get root {
//case where we have only one root+replies
if (_data.isEmpty) {
print('mderaEntrySet get root; DATA empty, no root');
return null;
}
ModeratorEntry? t;
_data.forEach((key, value) {
print(key);
print(value.flags.isPost);
if (value.flags.isPost) {
t = value;
}
});
return t;
}