getAndRemove abstract method

Future<T?> getAndRemove(
  1. String key
)

Removes the entry for a key only if currently mapped to some value.

  • key: key with which the specified value is associated

Returns the value if exists or null if no mapping existed for this key

Implementation

Future<T?> getAndRemove(String key);