EditorMessage.fromEvent constructor

EditorMessage.fromEvent({
  1. required String key,
  2. required EditorEvent event,
  3. String type = "toSummernote",
})

Implementation

factory EditorMessage.fromEvent({
  required String key,
  required EditorEvent event,
  String type = "toSummernote",
}) =>
    EditorMessage(
      key: key,
      method: event.method,
      payload: event.payload,
      type: type,
    );