summernoteCallback static method

String summernoteCallback({
  1. required EditorCallbacks event,
  2. required String body(
    1. EditorCallbacks event
    ),
})

Build an event callback for the summernote editor initialiser.

event is an enum containing info about the event and callback. body is the code that will be executed when the event is triggered.

Implementation

static String summernoteCallback({
  required EditorCallbacks event,
  required String Function(EditorCallbacks event) body,
}) =>
    "${event.callback}: ${callbackClosure(
      args: event.args,
      body: body(event),
    )}";