|
|
@ -259,6 +259,11 @@ class QuillController extends ChangeNotifier { |
|
|
|
const TextSelection.collapsed(offset: 0), ChangeSource.LOCAL); |
|
|
|
const TextSelection.collapsed(offset: 0), ChangeSource.LOCAL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void moveCursorToPosition(int position) { |
|
|
|
|
|
|
|
updateSelection( |
|
|
|
|
|
|
|
TextSelection.collapsed(offset: position), ChangeSource.LOCAL); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void moveCursorToEnd() { |
|
|
|
void moveCursorToEnd() { |
|
|
|
updateSelection( |
|
|
|
updateSelection( |
|
|
|
TextSelection.collapsed(offset: plainTextEditingValue.text.length), |
|
|
|
TextSelection.collapsed(offset: plainTextEditingValue.text.length), |
|
|
|