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.
20 lines
482 B
20 lines
482 B
11 months ago
|
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();
|
||
|
}
|
||
|
}
|