disposeViewModel property

bool disposeViewModel
final

Indicates if you want Provider to dispose the ViewModel when it's removed from the widget tree.

default's to true

Implementation

final bool disposeViewModel;