addedTokenIn method

String? addedTokenIn(
  1. String text
)

The first added token spelled out in text, or null. encode turns such spellings into control tokens, so text that must stay plain (a typed question, a replayed answer) is checked with this first.

Implementation

String? addedTokenIn(String text) {
  for (var i = 0; i < text.length; i++) {
    if (_addedAt(text, i) case final match?) return match;
  }
  return null;
}