setPersistenceEnabled method

bool setPersistenceEnabled(
  1. bool enabled
)

Sets persisted on-device (disk) storage

Implementation

//ignore:avoid_positional_boolean_parameters
bool setPersistenceEnabled(bool enabled) {
  _db?.setPersistenceEnabled(enabled);
  return _persistenceEnabled = enabled;
}