validateNumerical method

List<CheckpointValidationError> validateNumerical(
  1. Checkpoint checkpoint
)

Implementation

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