findAndClean method

String? findAndClean(
  1. TextLine line,
  2. String key
)

Implementation

String? findAndClean(TextLine line, String key) {
  if (line.elements.length > key.split(" ").length) {
    return line.text.cleanse(key);
  } else {
    return findInline(line)?.text.cleanse(key);
  }
}