isValid property

bool get isValid

Whether this ID represents a valid api.Span.

Implementation

bool get isValid => _id.isEmpty || !_id.every((i) => i == 0);