getAndRemove abstract method

Future 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 one existed or null if no mapping existed for this key

Implementation

Future<dynamic> getAndRemove(String key);