maintainState property

bool maintainState

Whether to destroy the state of the provider when all listeners are removed or not.

Can be changed at any time, in which case when setting it to false, may destroy the provider state if it currently has no listeners.

Defaults to false.


bool get maintainState;
void maintainState=(bool value)


set maintainState(bool value);