nameWithoutArtCalibrePart method

String nameWithoutArtCalibrePart(
  1. String calibreTitle
)

Implementation

String nameWithoutArtCalibrePart(String calibreTitle) {
  String name;
  if (calibreTitle.length < designation.length &&
      designation.contains(calibreTitle)) {
    name = designation.substring(calibreTitle.length);
  } else {
    name = designation;
  }
  return name.trim();
}