defineDocExtension static method

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

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