*<Null safety>*
- @override
dynamic describe () override
Describes this node. Returns null on error.
Implementation
@override
NodeInfo describe() {
if (_sharingMode == VmoSharingMode.shareDuplicate) {
final Vmo duplicatedVmo =
_vmo.duplicate(ZX.RIGHTS_BASIC | ZX.RIGHT_READ | ZX.RIGHT_MAP);
if (duplicatedVmo != null) {
return NodeInfo.withVmofile(Vmofile(
vmo: duplicatedVmo, offset: 0, length: _vmo.getSize().size));
}
}
return NodeInfo.withFile(FileObject(event: null));
}