| 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 69 of file FlutterTextInputPlugin.h.

## Method Documentation

## ◆ initWithIndex:affinity:

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

Definition at line 468 of file FlutterTextInputPlugin.mm.

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

References IsApproximatelyEqual().

## ◆ positionWithIndex:

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

Definition at line 468 of file FlutterTextInputPlugin.mm.

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

## ◆ positionWithIndex:affinity:

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

Definition at line 468 of file FlutterTextInputPlugin.mm.

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

## Property Documentation

## ◆ affinity

- (UITextStorageDirection) affinity
| read nonatomic assign

Definition at line 72 of file FlutterTextInputPlugin.h.

## ◆ index

- (NSUInteger) index
| read nonatomic assign

Definition at line 71 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