StoreMetadataDeprecations extension

Provides deprecations where possible for previous methods in StoreMetadata after the v9 release.

Synchronous operations have been removed throughout FMTC v9, therefore the distinction between sync and async operations has been removed.

Provided in an extension method for easy differentiation and quick removal.

on
Annotations
  • @Deprecated('Migrate to the suggested replacements for each operation. $_syncRemoval')

Properties

readAsync Future<Map<String, String>>
Retrieve the stored metadata for the specified store
no setter

Methods

addAsync({required String key, required String value}) Future<void>
Set a key-value pair in the metadata for the specified store
removeAsync({required String key}) Future<void>
Remove the specified key from the metadata for the specified store
resetAsync() Future<void>
Clear the metadata for the specified store