Flutter Engine
The Flutter Engine
Instance Methods | Properties | List of all members
FlutterTextFieldMock Class Reference
Inheritance diagram for FlutterTextFieldMock:
FlutterTextField

Instance Methods

(void) - updateString:withSelection: [implementation]
 
- Instance Methods inherited from FlutterTextField
(instancetype) - initWithPlatformNode:fieldEditor:
 
(void) - updateString:withSelection:
 
(void) - startEditing
 
(NSRect) - frame [implementation]
 
(void) - setAccessibilityFocused: [implementation]
 
(void) - setPlatformNode: [implementation]
 
(void) - dealloc [implementation]
 

Properties

NSString * lastUpdatedString
 
NSRange lastUpdatedSelection
 

Detailed Description

Definition at line 21 of file FlutterTextInputPluginTest.mm.

Method Documentation

◆ updateString:withSelection:

- (void) updateString: (NSString*)  string
withSelection: (NSRange)  selection 
implementation

Updates the string value and the selection of this text field.

Calling this method is necessary for macOS to get notified about string and selection changes.

Reimplemented from FlutterTextField.

Definition at line 24 of file FlutterTextInputPluginTest.mm.

30 :(NSString*)string withSelection:(NSRange)selection {
31 _lastUpdatedString = string;
32 _lastUpdatedSelection = selection;
33}

Property Documentation

◆ lastUpdatedSelection

- (NSRange) lastUpdatedSelection
readwritenonatomicassign

Definition at line 24 of file FlutterTextInputPluginTest.mm.

◆ lastUpdatedString

- (NSString*) lastUpdatedString
readwritenonatomiccopy

Definition at line 23 of file FlutterTextInputPluginTest.mm.


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