LocaleStringAttribute class base

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

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

hashCode int
The hash code for this object.
no setterinherited
locale Locale
The lanuage of this attribute.
final
range TextRange
The range of the text to which this attribute applies.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited