remove method
void
remove()
Clears the stored value and kills the associated isolate.
After calling this, the bucket is empty and the isolate is no longer running.
Warning
Killing the isolate is destructive and should be used with caution.
Example
final bucket = ThreadLocalStorageBucket<String>('bye', Isolate.current);
bucket.remove(); // clears value and kills isolate
Implementation
void remove() {
_storage = null;
}