dispose method

  1. @override
void dispose()
override

If you create and discard a large number of CodeMirror instances, you should call dispose after finishing with each one.

Implementation

@override
void dispose() {
  super.dispose();

  // Remove registrations from the map.
  _instances.remove(jsProxy);
}