isValid property

bool get isValid

all fields are valid

Implementation

bool get isValid =>
    _validations.isNotEmpty &&
    _validations.values
        .every((element) => element.isValid || element.isUnnecessary);