Flutter Engine
FlutterTextPosition Class Reference

#import <FlutterTextInputPlugin.h>

Inheritance diagram for FlutterTextPosition:

Instance Methods

(instancetype) - initWithIndex:
 

Class Methods

(instancetype) + positionWithIndex:
 

Properties

NSUInteger index
 

Detailed Description

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

Definition at line 29 of file FlutterTextInputPlugin.h.

Method Documentation

◆ initWithIndex:()

- (instancetype) initWithIndex: (NSUInteger)  index

Definition at line 330 of file FlutterTextInputPlugin.mm.

References index.

330  :(NSUInteger)index {
331  self = [super init];
332  if (self) {
333  _index = index;
334  }
335  return self;
336 }

◆ positionWithIndex:()

+ (instancetype) positionWithIndex: (NSUInteger)  index

Definition at line 326 of file FlutterTextInputPlugin.mm.

Referenced by FlutterTextRange::rangeWithNSRange:.

326  :(NSUInteger)index {
327  return [[[FlutterTextPosition alloc] initWithIndex:index] autorelease];
328 }

Property Documentation

◆ index

- (NSUInteger) index
readnonatomicassign

Definition at line 31 of file FlutterTextInputPlugin.h.

Referenced by initWithIndex:.


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