Skip to content
module_retention_strategy โ€บ Typedefs โ€บ ControllerRelease typedef

ControllerRelease โ€‹

typedef ControllerRelease = Future<void> Function({required bool disposeController})

Signature for a function that releases (and optionally disposes) the current ModuleController.

When disposeController is true, the controller is fully disposed. When false, the reference is detached but the controller remains alive (e.g. held by a ModuleRetainer).