Use super.key

pull/1483/head
Ellet 2 years ago
parent b86baf9b9f
commit 2a1b7f5db1
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 5
      lib/src/widgets/raw_editor/raw_editor.dart

@ -66,7 +66,7 @@ class RawEditor extends StatefulWidget {
required this.selectionCtrls, required this.selectionCtrls,
required this.embedBuilder, required this.embedBuilder,
required this.autoFocus, required this.autoFocus,
Key? key, super.key,
this.scrollable = true, this.scrollable = true,
this.padding = EdgeInsets.zero, this.padding = EdgeInsets.zero,
this.readOnly = false, this.readOnly = false,
@ -99,8 +99,7 @@ class RawEditor extends StatefulWidget {
assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'), assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'),
assert(maxHeight == null || minHeight == null || maxHeight >= minHeight, assert(maxHeight == null || minHeight == null || maxHeight >= minHeight,
'maxHeight cannot be null'), 'maxHeight cannot be null'),
showCursor = showCursor ?? true, showCursor = showCursor ?? true;
super(key: key);
/// Controls the document being edited. /// Controls the document being edited.
final QuillController controller; final QuillController controller;

Loading…
Cancel
Save