affinity property Null safety

TextAffinity affinity
final

Disambiguates cases where the position in the string given by offset could represent two different visual positions in the rendered text. For example, this can happen when text is forced to wrap, or when one string of text is rendered with multiple text directions.

See the documentation for TextAffinity for more information on how TextAffinity disambiguates situations like these.

Implementation

final TextAffinity affinity;