captureLazyState method

VoidCallback captureLazyState(
  1. ExtensionDescriptor descriptor
)

Captures state before lazy registration and returns a synchronous rollback. Builders supporting registerLazy must include all mutated registries. Unsupported builders fail before any contribution is published.

Implementation

VoidCallback captureLazyState(ExtensionDescriptor descriptor) =>
    throw UnsupportedError(
      '$title does not support transactional lazy registration',
    );