getValue method

T getValue()

Get the latest value from the persistent storage synchronously.

If the returned value doesn't exist (=is null), returns defaultValue.

Implementation

T getValue() => _adapter.getValue(_preferences, key) ?? defaultValue;