autoDispose property

bool autoDispose
final

Whether to automatically dispose the controller when the widget is disposed.

Defaults to true. Set to false if you want to keep the controller alive after the widget is removed (e.g., for navigation back scenarios).

Implementation

final bool autoDispose;