dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
482 B
19 lines
482 B
import 'package:meta/meta.dart'; |
|
|
|
import 'clipboard_service.dart'; |
|
import 'default_clipboard_service.dart'; |
|
|
|
@immutable |
|
class ClipboardServiceProvider { |
|
const ClipboardServiceProvider._(); |
|
static ClipboardService _instance = DefaultClipboardService(); |
|
static ClipboardService get instacne => _instance; |
|
|
|
static void setInstance(ClipboardService service) { |
|
_instance = service; |
|
} |
|
|
|
static void setInstanceToDefault() { |
|
_instance = DefaultClipboardService(); |
|
} |
|
}
|
|
|