Fix formatting

pull/87/head
Miller Adulu 4 years ago
commit 933a17eafb
  1. 4
      lib/models/documents/style.dart
  2. 4
      lib/models/quill_delta.dart
  3. 2
      lib/widgets/editor.dart

@ -100,8 +100,8 @@ class Style {
@override @override
int get hashCode { int get hashCode {
final hashes = _attributes.entries final hashes =
.map((entry) => hash2(entry.key, entry.value)); _attributes.entries.map((entry) => hash2(entry.key, entry.value));
return hashObjects(hashes); return hashObjects(hashes);
} }

@ -154,8 +154,8 @@ class Operation {
@override @override
int get hashCode { int get hashCode {
if (_attributes != null && _attributes!.isNotEmpty) { if (_attributes != null && _attributes!.isNotEmpty) {
final attrsHash = hashObjects( final attrsHash =
_attributes!.entries.map((e) => hash2(e.key, e.value))); hashObjects(_attributes!.entries.map((e) => hash2(e.key, e.value)));
return hash3(key, value, attrsHash); return hash3(key, value, attrsHash);
} }
return hash2(key, value); return hash2(key, value);

@ -162,7 +162,7 @@ class QuillEditor extends StatefulWidget {
QuillEditor( QuillEditor(
{Key? key, {Key? key,
required this.controller, required this.controller,
required this.focusNode, required this.focusNode,
required this.scrollController, required this.scrollController,
required this.scrollable, required this.scrollable,

Loading…
Cancel
Save