isLeaf property

bool isLeaf

Returns true if it's a leaf node (no outputs).

Implementation

bool get isLeaf => _outputs.isEmpty;