maintainState property

  1. @Deprecated('use keepAlive() instead')
bool get 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.

Implementation

@Deprecated('use keepAlive() instead')
bool get maintainState;
  1. @Deprecated('use keepAlive() instead')
set maintainState (bool value)

Implementation

@Deprecated('use keepAlive() instead')
set maintainState(bool value);