# get method

T? get()

Returns the value associated with this LocalThread in the current Isolate.

Returns `null` if no value has been set yet.

### Example

    final local = ThreadLocal<String>();
    print(local.get()); // null

    local.set('hello');
    print(local.get()); // hello

## Implementation

    T? get() {
      final bucket = isolateLocalValueStore.getBucket<T>(Isolate.current, _key);
      return bucket.get();
    }