CopyToClipboardExtensionEvent.from constructor
CopyToClipboardExtensionEvent.from(
- DevToolsExtensionEvent event
Implementation
factory CopyToClipboardExtensionEvent.from(DevToolsExtensionEvent event) {
assert(event.type == DevToolsExtensionEventType.copyToClipboard);
final content = event.data!.checkValid<String>(_contentKey);
final successMessage = event.data!.checkValid<String>(_successMessageKey);
return CopyToClipboardExtensionEvent(
content: content,
successMessage: successMessage,
);
}