diff --git a/doc/migration/10_to_11.md b/doc/migration/10_to_11.md index d64abe41a..f352d7e21 100644 --- a/doc/migration/10_to_11.md +++ b/doc/migration/10_to_11.md @@ -480,5 +480,6 @@ in non-major releases: - The magnifier feature including `QuillEditorConfig.magnifierConfiguration`. - The `shouldNotifyListeners` in `QuillController.replaceText()`, `QuillController.replaceText()`, `QuillController.formatSelection()`. - The `QuillController.clipboardSelection()`. +- The `CopyCutServiceProvider`, `CopyCutService`, and `DefaultCopyCutService`. The functionality itself has not changed and no experimental changes were introduced. \ No newline at end of file diff --git a/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service.dart b/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service.dart index 81dc77a3c..1fbbfc12a 100644 --- a/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service.dart +++ b/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service.dart @@ -1,10 +1,11 @@ -import 'package:flutter/foundation.dart'; +import 'package:meta/meta.dart'; typedef CopyCutAction = Object? Function(dynamic data); /// An abstraction to make it easy to provide different implementations /// For copy or cut actions from a Line (just for embeddable blocks) @immutable +@experimental abstract class CopyCutService { /// Get the CopyCutAction by the type /// of the embeddable (this type is decided by diff --git a/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service_provider.dart b/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service_provider.dart index 81e5d1fe4..774dce965 100644 --- a/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service_provider.dart +++ b/lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service_provider.dart @@ -1,8 +1,9 @@ -import 'package:flutter/foundation.dart' show immutable; +import 'package:meta/meta.dart'; import 'copy_cut_service.dart'; import 'default_copy_cut_service.dart'; @immutable +@experimental abstract final class CopyCutServiceProvider { static CopyCutService _instance = DefaultCopyCutService(); diff --git a/lib/src/editor_toolbar_controller_shared/copy_cut_service/default_copy_cut_service.dart b/lib/src/editor_toolbar_controller_shared/copy_cut_service/default_copy_cut_service.dart index 5b2469bbd..8a2254bbb 100644 --- a/lib/src/editor_toolbar_controller_shared/copy_cut_service/default_copy_cut_service.dart +++ b/lib/src/editor_toolbar_controller_shared/copy_cut_service/default_copy_cut_service.dart @@ -1,3 +1,5 @@ +import 'package:meta/meta.dart'; + import '../../document/nodes/leaf.dart'; import 'copy_cut_service.dart'; @@ -6,6 +8,7 @@ import 'copy_cut_service.dart'; /// This implementation always return the default embed character /// replacemenet ([\uFFFC]) to work with the embeds from the internal /// flutter quill plugins +@experimental class DefaultCopyCutService extends CopyCutService { @override CopyCutAction getCopyCutAction(String type) {