asDSX property

  1. @override
DSX? get asDSX
override

Returns this node as an DSX instance if isDSX returns true.

Implementation

@override
DSX? get asDSX {
  if (nodes.length == 1) {
    return nodes.first.asDSX;
  } else {
    return null;
  }
}