defineExtension static method

void defineExtension(
  1. String name,
  2. dynamic value
)

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]);
}