ShowNotificationExtensionEvent.from constructor
ShowNotificationExtensionEvent.from(
- DevToolsExtensionEvent event
Implementation
factory ShowNotificationExtensionEvent.from(DevToolsExtensionEvent event) {
assert(event.type == DevToolsExtensionEventType.showNotification);
final message = event.data!.checkValid<String>(_messageKey);
return ShowNotificationExtensionEvent(message: message);
}