refactor: use immutable annotation from flutter foundation instead of meta package in flutter_quill

pull/2033/head
Ellet 9 months ago
parent 4a166e3d1d
commit f5e0f8589b
No known key found for this signature in database
GPG Key ID: 40CCC70E96F82970
  1. 2
      lib/src/common/structs/image_url.dart
  2. 2
      lib/src/common/structs/offset_value.dart
  3. 2
      lib/src/common/structs/optional_size.dart
  4. 2
      lib/src/common/structs/segment_leaf_node.dart
  5. 2
      lib/src/common/structs/vertical_spacing.dart
  6. 2
      lib/src/controller/quill_controller.dart
  7. 2
      lib/src/delta/delta_diff.dart
  8. 4
      lib/src/delta/delta_x.dart
  9. 4
      lib/src/document/attribute.dart
  10. 2
      lib/src/document/structs/doc_change.dart
  11. 2
      lib/src/document/structs/history_changed.dart
  12. 1
      lib/src/editor/config/editor_configurations.dart
  13. 3
      lib/src/editor/raw_editor/config/raw_editor_configurations.dart
  14. 4
      lib/src/editor/raw_editor/raw_editor.dart
  15. 3
      lib/src/editor_toolbar_controller_shared/clipboard/clipboard_service_provider.dart
  16. 2
      lib/src/rules/delete.dart
  17. 2
      lib/src/rules/format.dart
  18. 2
      lib/src/rules/insert.dart
  19. 2
      lib/src/rules/rule.dart
  20. 3
      lib/src/toolbar/structs/link_dialog_action.dart
  21. 3
      lib/src/toolbar/theme/quill_dialog_theme.dart

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
@immutable
class ImageUrl {

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
@immutable
class OffsetValue<T> {

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
@immutable
class OptionalSize {

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../document/nodes/leaf.dart';
import '../../document/nodes/line.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
@immutable
class VerticalSpacing {

@ -3,7 +3,7 @@ import 'dart:math' as math;
import 'package:flutter/services.dart' show ClipboardData, Clipboard;
import 'package:flutter/widgets.dart';
import 'package:html/parser.dart' as html_parser;
import 'package:meta/meta.dart';
import 'package:meta/meta.dart' show experimental;
import '../../quill_delta.dart';
import '../common/structs/image_url.dart';

@ -1,7 +1,7 @@
import 'dart:math' as math;
import 'dart:ui' show TextDirection;
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../quill_delta.dart';
import '../document/attribute.dart';

@ -1,6 +1,8 @@
import 'package:flutter/foundation.dart' show immutable;
import 'package:flutter_quill_delta_from_html/flutter_quill_delta_from_html.dart';
import 'package:markdown/markdown.dart' as md;
import 'package:meta/meta.dart';
import 'package:meta/meta.dart' show experimental;
import '../../markdown_quill.dart';
import '../../quill_delta.dart';

@ -1,7 +1,7 @@
import 'dart:collection';
import 'dart:collection' show LinkedHashSet, LinkedHashMap;
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import 'package:quiver/core.dart';
import 'custom_attributes.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../../quill_delta.dart';
import '../document.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
@immutable
class HistoryChanged {

@ -1,4 +1,3 @@
// ignore_for_file: public_member_api_docs, sort_constructors_first
import 'package:equatable/equatable.dart';
import 'package:flutter/foundation.dart' show Brightness, Uint8List, immutable;
import 'package:flutter/material.dart'

@ -1,5 +1,5 @@
import 'package:equatable/equatable.dart';
import 'package:flutter/foundation.dart' show Brightness, Uint8List;
import 'package:flutter/foundation.dart' show Brightness, Uint8List, immutable;
import 'package:flutter/material.dart'
show
AdaptiveTextSelectionToolbar,
@ -26,7 +26,6 @@ import 'package:flutter/widgets.dart'
Widget,
MouseCursor,
SystemMouseCursors;
import 'package:meta/meta.dart' show immutable;
import '../../../controller/quill_controller.dart';
import '../../../editor/embed/embed_editor_builder.dart';

@ -8,8 +8,8 @@ import 'package:flutter/widgets.dart'
State,
StatefulWidget,
TextSelectionDelegate,
Widget;
import 'package:meta/meta.dart' show immutable;
Widget,
immutable;
import '../../common/structs/offset_value.dart';
import '../editor.dart';

@ -1,5 +1,4 @@
import 'package:meta/meta.dart';
import 'package:flutter/foundation.dart' show immutable;
import 'clipboard_service.dart';
import 'default_clipboard_service.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../quill_delta.dart';
import '../document/attribute.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../quill_delta.dart';
import '../document/attribute.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/widgets.dart' show immutable;
import '../../quill_delta.dart';
import '../common/extensions/uri_ext.dart';

@ -1,4 +1,4 @@
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/foundation.dart' show immutable;
import '../../quill_delta.dart';
import '../document/attribute.dart';

@ -1,5 +1,4 @@
import 'package:flutter/widgets.dart' show Widget;
import 'package:meta/meta.dart' show immutable;
import 'package:flutter/widgets.dart' show Widget, immutable;
@immutable
class LinkDialogAction {

@ -1,4 +1,4 @@
import 'package:flutter/foundation.dart' show Diagnosticable;
import 'package:flutter/foundation.dart' show Diagnosticable, immutable;
import 'package:flutter/material.dart'
show
BoxConstraints,
@ -8,7 +8,6 @@ import 'package:flutter/material.dart'
EdgeInsetsGeometry,
ShapeBorder,
TextStyle;
import 'package:meta/meta.dart' show immutable;
/// Used to configure the dialog's look and feel.

Loading…
Cancel
Save