Skip to content

Commit

Permalink
chore: mark CopyCutServiceProvider as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Nov 17, 2024
1 parent 65f64d8 commit 022a1be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/migration/10_to_11.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'package:meta/meta.dart';

import '../../document/nodes/leaf.dart';
import 'copy_cut_service.dart';

Expand All @@ -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) {
Expand Down

0 comments on commit 022a1be

Please sign in to comment.