Skip to content

Commit

Permalink
Update README.md [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 authored Oct 12, 2023
1 parent cfa108f commit 47a9a46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ rxPrefs2.setStringList('KEY_LIST', ['Cool']); // [*] will not print an
Future<void> write<T extends Object>(String key, T? value, Encoder<T?> encoder);
```

### 5. Dispose
### 6. Dispose

You can dispose `RxSharedPreferences` when is no longer needed.
You can dispose the `RxSharedPreferences` when it is no longer needed.
Just call `rxPrefs.dispose()`.
Usually you call this method on `dispose` of a `State`
Usually, you call this method on `dispose` method of a Flutter `State`.

> NOTE: If you use the default singleton instance (via `RxSharedPreferences.getInstance()`,
> you should **not** call `dispose` method,
> you should **not** call the `dispose` method,
> must keep the instance alive for the entire lifetime of the application.


Expand Down

0 comments on commit 47a9a46

Please sign in to comment.