isValid property

bool get isValid

Whether this model specification is valid

Implementation

bool get isValid => files.isNotEmpty && files.any((f) => f.isRequired);