LocaleStringAttribute class Null safety
A string attribute that causes the assistive technologies, e.g. VoiceOver, to treat string as a certain language.
See also:
- AttributedString, where the string attributes are used.
- SpellOutStringAttribute, which causes the assistive technologies to spell out the string character by character when announcing the string.
- Inheritance
-
- Object
- StringAttribute
- LocaleStringAttribute
Constructors
- LocaleStringAttribute({required TextRange range, required Locale locale})
-
Creates a string attribute that denotes the text in
range
must be treated as the language specified by the locale when the assistive technologies announce the string.
Properties
Methods
-
copy(
{required TextRange range}) → StringAttribute -
Creates a new attribute with all properties copied except for range, which
is updated to the specified value.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited