setPersistenceEnabled method

Future<bool> setPersistenceEnabled(
  1. bool enabled
)

Implementation

Future<bool> setPersistenceEnabled(bool enabled) async {
  _persistenceEnabled = await _db?.setPersistenceEnabled(enabled);

  _persistenceEnabled = _persistenceEnabled ?? false;

  return Future.value(_persistenceEnabled);
}