From 2a1b7f5db11d29a9ad1b25ddf1f3890f9c504be2 Mon Sep 17 00:00:00 2001 From: Ellet <73608287+freshtechtips@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:31:50 +0300 Subject: [PATCH] Use super.key --- lib/src/widgets/raw_editor/raw_editor.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/widgets/raw_editor/raw_editor.dart b/lib/src/widgets/raw_editor/raw_editor.dart index 80e920fd..8e5090f0 100644 --- a/lib/src/widgets/raw_editor/raw_editor.dart +++ b/lib/src/widgets/raw_editor/raw_editor.dart @@ -66,7 +66,7 @@ class RawEditor extends StatefulWidget { required this.selectionCtrls, required this.embedBuilder, required this.autoFocus, - Key? key, + super.key, this.scrollable = true, this.padding = EdgeInsets.zero, this.readOnly = false, @@ -99,8 +99,7 @@ class RawEditor extends StatefulWidget { assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'), assert(maxHeight == null || minHeight == null || maxHeight >= minHeight, 'maxHeight cannot be null'), - showCursor = showCursor ?? true, - super(key: key); + showCursor = showCursor ?? true; /// Controls the document being edited. final QuillController controller;