disposeViewModel property Null safety

bool disposeViewModel

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;