StringTextNode class
Constructors
-
StringTextNode({required String path, required String rawPath, required Map<
String, String> modifiers, required I18nLocale locale, required Map<String, FormatTypeInfo> types, required String raw, required String? comment, required bool shouldEscape, required bool handleTypes, required StringInterpolation interpolation, required CaseStyle? paramCase, Map<String, Set< ? linkParamMap})String> >
Properties
- comment → String?
-
finalinherited
- content → String
-
no setter
- handleTypes → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interpolation → StringInterpolation
-
finalinherited
-
links
→ Set<
String> -
Set of paths to TextNodes
Will be used for 2nd round, determining the final set of parameters
no setteroverride
- locale → I18nLocale
-
The locale of the text node
finalinherited
-
modifiers
→ Map<
String, String> -
finalinherited
- paramCase → CaseStyle?
-
finalinherited
-
params
→ Set<
String> -
Set of parameters.
Hello {name}, I am {age} years old -> {'name', 'age'}
no setteroverride
-
paramTypeMap
→ Map<
String, String> -
Plural and context parameters need to have a special parameter type (e.g. num)
In a normal case, this parameter and its type will be added at generate stage
no setteroverride
- parent → Node?
-
no setterinherited
- path → String
-
finalinherited
- raw → String
-
The original string
finalinherited
- rawPath → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldEscape → bool
-
Several configs, persisted into node to make it easier to copy
See updateWithLinkParams
finalinherited
-
types
→ Map<
String, FormatTypeInfo> -
User-defined types for the locale
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setParent(
Node parent) → void -
inherited
-
toString(
) → String -
A string representation of this object.
override
-
updateWithLinkParams(
{required Map< String, Set< linkParamMap, required Map<String> >String, String> paramTypeMap}) → void -
Updates content, params and
paramTypeMap
according to the new linked parametersoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited