Update controller.dart (#630)

pull/633/head
mark8044 3 years ago committed by GitHub
parent 8ed3d35477
commit 017194a428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/src/widgets/controller.dart

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

Loading…
Cancel
Save