defineDocExtension static method
Like defineExtension, but the method will be added to the interface for Doc objects instead.
Implementation
static void defineDocExtension(String name, dynamic value) {
_cm!.callMethod('defineDocExtension', [name, value]);
}