putIfAbsent abstract method

  1. @override
Future<bool> putIfAbsent(
  1. String key,
  2. T value, {
  3. VaultEntryDelegate<T>? delegate,
})
override

Associates the specified key with the given value

  • key: key with which the specified value is to be associated
  • value: value to be associated with the specified key
  • delegate: provides the caller a way of changing the VaultEntry before persistence

Returns true if a value was set.

Implementation

@override
Future<bool> putIfAbsent(String key, T value,
    {VaultEntryDelegate<T>? delegate});