sameParts method

bool sameParts(
  1. InputFile? inputFile
)

Implementation

bool sameParts(InputFile? inputFile) {
  if (inputFile == null) {
    return false;
  }

  if (parts.length != inputFile.parts.length) {
    return false;
  }

  for (var i = 0; i < parts.length; i++) {
    if (parts[i] != inputFile.parts[i]) {
      return false;
    }
  }

  return true;
}