From d1fa59a759137550f4e74d24a38b4a40b833afba Mon Sep 17 00:00:00 2001 From: X Code Date: Tue, 14 Dec 2021 15:21:07 -0800 Subject: [PATCH] Reformat code --- lib/src/widgets/raw_editor.dart | 70 ++++++++++++++++----------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index c42b95f6..01b3a351 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -30,41 +30,41 @@ import 'text_line.dart'; import 'text_selection.dart'; class RawEditor extends StatefulWidget { - const RawEditor({ - required this.controller, - required this.focusNode, - required this.scrollController, - required this.scrollBottomInset, - required this.cursorStyle, - required this.selectionColor, - required this.selectionCtrls, - Key? key, - this.scrollable = true, - this.padding = EdgeInsets.zero, - this.readOnly = false, - this.placeholder, - this.onLaunchUrl, - this.toolbarOptions = const ToolbarOptions( - copy: true, - cut: true, - paste: true, - selectAll: true, - ), - this.showSelectionHandles = false, - bool? showCursor, - this.textCapitalization = TextCapitalization.none, - this.maxHeight, - this.minHeight, - this.customStyles, - this.expands = false, - this.autoFocus = false, - this.keyboardAppearance = Brightness.light, - this.enableInteractiveSelection = true, - this.scrollPhysics, - this.embedBuilder = defaultEmbedBuilder, - this.customStyleBuilder, - this.floatingCursorDisabled = false - }) : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), + const RawEditor( + {required this.controller, + required this.focusNode, + required this.scrollController, + required this.scrollBottomInset, + required this.cursorStyle, + required this.selectionColor, + required this.selectionCtrls, + Key? key, + this.scrollable = true, + this.padding = EdgeInsets.zero, + this.readOnly = false, + this.placeholder, + this.onLaunchUrl, + this.toolbarOptions = const ToolbarOptions( + copy: true, + cut: true, + paste: true, + selectAll: true, + ), + this.showSelectionHandles = false, + bool? showCursor, + this.textCapitalization = TextCapitalization.none, + this.maxHeight, + this.minHeight, + this.customStyles, + this.expands = false, + this.autoFocus = false, + this.keyboardAppearance = Brightness.light, + this.enableInteractiveSelection = true, + this.scrollPhysics, + this.embedBuilder = defaultEmbedBuilder, + this.customStyleBuilder, + this.floatingCursorDisabled = false}) + : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), assert(minHeight == null || minHeight >= 0, 'minHeight cannot be null'), assert(maxHeight == null || minHeight == null || maxHeight >= minHeight, 'maxHeight cannot be null'),