summernoteCallback static method
String
summernoteCallback({
- required EditorCallbacks event,
- required String body(
- 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),
)}";