# set method

void set(

1. T value

)

Sets a value for this LocalThread in the current Isolate.

Overwrites any existing value for this isolate.

### Example

    final local = ThreadLocal<int>();
    local.set(100);
    print(local.get()); // 100

## Implementation

    void set(T value) {
      final bucket = isolateLocalValueStore.getBucket<T>(Isolate.current, _key);
      bucket.set(value);
    }