isValid property

bool get isValid

Validate that exactly one of source or content is present.

Implementation

bool get isValid =>
    (source != null && content == null) ||
    (source == null && content != null);