StringAttribute class Null safety

An abstract interface for string attributes that affects how assistive technologies, e.g. VoiceOver or TalkBack, treat the text.

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.
  • LocaleStringAttribute, which causes the assistive technologies to treat the string in the specific language.
Implementers

Properties

hashCode int
The hash code for this object.
read-onlyinherited
range TextRange
The range of the text to which this attribute applies.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copy({required TextRange range}) StringAttribute
Creates a new attribute with all properties copied except for range, which is updated to the specified value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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