normalizeText function

String normalizeText(
  1. String text
)

Normalizes general text: trims, collapses whitespace and applies Unicode NFC.

Implementation

String normalizeText(String text) => normalizeWhitespace(toNfc(text));