Skip to content

Commit 022a1be

Browse files
committed
chore: mark CopyCutServiceProvider as experimental
1 parent 65f64d8 commit 022a1be

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

doc/migration/10_to_11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,5 +480,6 @@ in non-major releases:
480480
- The magnifier feature including `QuillEditorConfig.magnifierConfiguration`.
481481
- The `shouldNotifyListeners` in `QuillController.replaceText()`, `QuillController.replaceText()`, `QuillController.formatSelection()`.
482482
- The `QuillController.clipboardSelection()`.
483+
- The `CopyCutServiceProvider`, `CopyCutService`, and `DefaultCopyCutService`.
483484

484485
The functionality itself has not changed and no experimental changes were introduced.

lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import 'package:flutter/foundation.dart';
1+
import 'package:meta/meta.dart';
22

33
typedef CopyCutAction = Object? Function(dynamic data);
44

55
/// An abstraction to make it easy to provide different implementations
66
/// For copy or cut actions from a Line (just for embeddable blocks)
77
@immutable
8+
@experimental
89
abstract class CopyCutService {
910
/// Get the CopyCutAction by the type
1011
/// of the embeddable (this type is decided by

lib/src/editor_toolbar_controller_shared/copy_cut_service/copy_cut_service_provider.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import 'package:flutter/foundation.dart' show immutable;
1+
import 'package:meta/meta.dart';
22
import 'copy_cut_service.dart';
33
import 'default_copy_cut_service.dart';
44

55
@immutable
6+
@experimental
67
abstract final class CopyCutServiceProvider {
78
static CopyCutService _instance = DefaultCopyCutService();
89

lib/src/editor_toolbar_controller_shared/copy_cut_service/default_copy_cut_service.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'package:meta/meta.dart';
2+
13
import '../../document/nodes/leaf.dart';
24
import 'copy_cut_service.dart';
35

@@ -6,6 +8,7 @@ import 'copy_cut_service.dart';
68
/// This implementation always return the default embed character
79
/// replacemenet ([\uFFFC]) to work with the embeds from the internal
810
/// flutter quill plugins
11+
@experimental
912
class DefaultCopyCutService extends CopyCutService {
1013
@override
1114
CopyCutAction getCopyCutAction(String type) {

0 commit comments

Comments
 (0)