LabelMatch class
Word-level label comparison for SIDE-EFFECT actions (set_text, click, check, set_slider). Deliberately stricter than the read-only match ladder: tokens must be equal words (plural / possessive / number-word tolerant), never prefixes — "PIN" is not "Pincode".
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
agreement(
String target, String label) → LabelAgreement -
How a control's own
labelrelates to the requestedtargetlabel. -
agrees(
String target, String label) → bool -
True when
labelnames the requested thing (or is more generic, or merely appends a trailing descriptor). -
allTokens(
String s) → List< String> -
Every word of
s(normalised, canonical), filler included. -
asksForSecret(
String target) → bool - True when the request itself asks for a secret (PIN / password / OTP).
-
contradicts(
String target, String label) → bool -
True when
labelclearly names something ELSE thantarget. -
isNumeric(
String t) → bool - True for a digit-led token or a number word.
-
squash(
String s) → String - Lowercased alphanumerics only — the formatter-tolerant comparison ("₹5,00,000" → "500000", "12 34" → "1234").
-
strictTokenSimilarity(
String hay, String needle, {Set< String> drop = const {}}) → double -
Fraction of
needle's meaningful tokens that have a tokenEq partner inhay(each hay token consumed once). -
tokenEq(
String a, String b) → bool -
Strict token equality: same word, a plural /
esform of it, or a number word and its digits. Never a prefix. -
tokens(
String s) → List< String> -
Meaningful words of
s: allTokens minus filler. -
wordBoundaryContains(
String hay, String needle) → bool -
needleoccurs inhay(both already normalised) as whole words.