defineExtension static method
If you want to define extra methods in terms of the CodeMirror API, it is possible to use defineExtension. This will cause the given value (usually a method) to be added to all CodeMirror instances created from then on.
Implementation
static void defineExtension(String name, dynamic value) {
_cm!.callMethod('defineExtension', [name, value]);
}