getAndRemove method Null safety

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

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);