...

/

Configurations for Dependency Disposal

Configurations for Dependency Disposal

Learn to configure GetX to manage dependency disposal from memory.

Changing the default disposal behavior with SmartManagement

GetX optimizes for performance. By default, it deletes all the attached controllers once the widget is disposed of. This may be ideal for most scenarios, but sometimes, we need to preserve those controllers for later access. We mark individual controllers as permanent during initialization to prevent them from deleting.

But what if we wish to change this default behavior and preserve all the controllers? GetX allows us ...