disposeViewModel property

bool get disposeViewModel
inherited

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

default's to true

Implementation

bool get disposeViewModel => true;