Google is committed to advancing racial equity for Black communities. See how.

describe method

  • @override

dynamic describe () override

Describes this node and exposes a duplicate of the underlying Vmo.

Returns null when vmoFn returns null or duplicate fails.

The function calls the passed callback.


NodeInfo describe() {
  final Vmo originalVmo = _vmoFn();
  final Vmo duplicatedVmo =
      originalVmo?.duplicate(ZX.RIGHTS_BASIC | ZX.RIGHT_READ | ZX.RIGHT_MAP);
  if (duplicatedVmo == null) {
    return NodeInfo.withFile(FileObject(event: null));

  return NodeInfo.withVmofile(Vmofile(
      vmo: duplicatedVmo, offset: 0, length: duplicatedVmo.getSize().size));