isEmpty property

bool get isEmpty

Whether the object or array has no children (true for other nodes).

Implementation

bool get isEmpty => size == 0;