validateNumerical method
Implementation
List<CheckpointValidationError> validateNumerical(Checkpoint checkpoint) {
return [
if (checkpoint.number1.isNullOrEmpty)
CheckpointValidationError.numerical1IsWrongOrEmpty,
if (checkpoint.number2.isNullOrEmpty && checkpoint.numberOfValues > 1)
CheckpointValidationError.numerical2IsWrongOrEmpty,
];
}