autoDisposeControllers property

bool autoDisposeControllers
final

Auto dispose the controller and FocusNode upon the destruction of widget from the widget tree. Default is true

Implementation

final bool autoDisposeControllers;