CodeMirror.fromJsObject constructor
CodeMirror.fromJsObject(
- JsObject? object
Create a new CodeMirror editor from the given JsObject. This will return an
existing Dart CodeMirror
object if there is already one for the given
JavaScript proxy.
Implementation
factory CodeMirror.fromJsObject(JsObject? object) {
if (_instances.containsKey(object)) {
return _instances[object]!;
} else {
return CodeMirror._fromJsObject(object);
}
}