| Flutter iOS Embedder |

Instance Methods | Class Methods | Properties | List of all members
FlutterTextPosition Class Reference

`#import <FlutterTextInputPlugin.h>`

Inheritance diagram for FlutterTextPosition:

## Instance Methods
(instancetype) | - initWithIndex:affinity:

## Class Methods
(instancetype) | + positionWithIndex:
(instancetype) | + positionWithIndex:affinity:

## Properties
NSUInteger | index
UITextStorageDirection | affinity

## Detailed Description

An indexed position in the buffer of a Flutter text editing widget.

Definition at line 76 of file FlutterTextInputPlugin.h.

## Method Documentation

## ◆ initWithIndex:affinity:

- (instancetype) initWithIndex: |  | (NSUInteger) | index
affinity: |  | (UITextStorageDirection) | affinity

Definition at line 469 of file FlutterTextInputPlugin.mm.

535 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
536 self = [super init];
537 if (self) {
538 _index = index;
539 _affinity = affinity;
540 }
541 return self;
542 }
FlutterTextPosition::index
NSUInteger index
Definition: FlutterTextInputPlugin.h:78
FlutterTextPosition::affinity
UITextStorageDirection affinity
Definition: FlutterTextInputPlugin.h:79

References IsApproximatelyEqual().

## ◆ positionWithIndex:

+ (instancetype) positionWithIndex: |  | (NSUInteger) | index |

Definition at line 469 of file FlutterTextInputPlugin.mm.

527 :(NSUInteger)index {
528 return [[FlutterTextPosition alloc] initWithIndex:index affinity:UITextStorageDirectionForward];
529 }
FlutterTextPosition
Definition: FlutterTextInputPlugin.h:77

## ◆ positionWithIndex:affinity:

+ (instancetype) positionWithIndex: |  | (NSUInteger) | index
affinity: |  | (UITextStorageDirection) | affinity

Definition at line 469 of file FlutterTextInputPlugin.mm.

531 :(NSUInteger)index affinity:(UITextStorageDirection)affinity {
532 return [[FlutterTextPosition alloc] initWithIndex:index affinity:affinity];
533 }

## Property Documentation

## ◆ affinity

- (UITextStorageDirection) affinity
| read nonatomic assign

Definition at line 79 of file FlutterTextInputPlugin.h.

## ◆ index

- (NSUInteger) index
| read nonatomic assign

Definition at line 78 of file FlutterTextInputPlugin.h.

The documentation for this class was generated from the following files:

- shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h
- shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.mm