PrimaryPatternSettings class final
Deprecated alias for PatternSettings.primary.
Kept so existing code compiles. New code should prefer the constant.
- Inheritance
-
- Object
- PatternSettings
- PrimaryPatternSettings
- Annotations
-
- @Deprecated('Use PatternSettings.primary or const PatternSettings() instead.')
Constructors
- PrimaryPatternSettings({String? callback(String key, dynamic suggestedReplacementValue, String defaultValue)?})
-
const
Properties
- callback → String? Function(String key, dynamic suggestedReplacementValue, String defaultValue)?
-
User-supplied callback invoked for every successful pattern match.
Receives the parsed key, the value from the lookup map (or null if
not present), and the parsed default value. Return the desired
replacement, or
nullto fall back to the standardvalue ?? defaultchain.finalinherited - caseFold → String Function(String input)?
-
Optional custom case-folding function. Used in place of
String.toLowerCasewhen caseSensitive is false. Pass a locale-aware folder here for Turkish (İ↔i), Azerbaijani, or other special locales — and/or chain in Unicode normalisation (NFC) and bidi-control stripping for RTL languages.finalinherited - caseSensitive → bool
-
finalinherited
- closing → String
-
finalinherited
- delimiter → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- opening → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separator → String
-
finalinherited
Methods
-
foldKey(
String input) → String -
Applies the active case-folding strategy to
input.inherited -
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