hasExtension method

bool hasExtension(
  1. String id
)

Checks if an extension with the given ID is registered.

Example:

if (controller.hasExtension('undo-redo')) {
  // Undo/redo is available
}

Implementation

bool hasExtension(String id) => _extensions.any((e) => e.id == id);