Reformat code

pull/531/head
X Code 3 years ago
parent 156e0d71df
commit d1fa59a759
  1. 8
      lib/src/widgets/raw_editor.dart

@ -30,8 +30,8 @@ import 'text_line.dart';
import 'text_selection.dart'; import 'text_selection.dart';
class RawEditor extends StatefulWidget { class RawEditor extends StatefulWidget {
const RawEditor({ const RawEditor(
required this.controller, {required this.controller,
required this.focusNode, required this.focusNode,
required this.scrollController, required this.scrollController,
required this.scrollBottomInset, required this.scrollBottomInset,
@ -63,8 +63,8 @@ class RawEditor extends StatefulWidget {
this.scrollPhysics, this.scrollPhysics,
this.embedBuilder = defaultEmbedBuilder, this.embedBuilder = defaultEmbedBuilder,
this.customStyleBuilder, this.customStyleBuilder,
this.floatingCursorDisabled = false this.floatingCursorDisabled = false})
}) : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'), : assert(maxHeight == null || maxHeight > 0, 'maxHeight cannot be null'),
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'),

Loading…
Cancel
Save