From 2f298c6672e013811c28dd794dcfad0f2af41e47 Mon Sep 17 00:00:00 2001 From: Dmitry Sboychakov Date: Tue, 14 Sep 2021 10:06:55 +0530 Subject: [PATCH] fix null safety (#401) --- lib/src/widgets/controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/controller.dart b/lib/src/widgets/controller.dart index b3173ed2..15104add 100644 --- a/lib/src/widgets/controller.dart +++ b/lib/src/widgets/controller.dart @@ -85,7 +85,7 @@ class QuillController extends ChangeNotifier { } void _handleHistoryChange(int? len) { - if (len != 0) { + if (len! != 0) { // if (this.selection.extentOffset >= document.length) { // // cursor exceeds the length of document, position it in the end // updateSelection(