# zone_local 0.1.1

Type-safe zone-scoped variables.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'zone_local:0.1.1'
```
Published: 2019-06-11T18:12:16.897002Z
Expected archive SHA-256: e4f1f3800bf6798b21a73ec20bf41395b4c3de01694556aaf77ce63859e4c7e2
Discontinued upstream.
Available in cache; verification: upstream_checksum
## Direct dependencies

## Package README (untrusted upstream documentation)
# Introduction
What's a zone? See [explanation of zones at dartlang.org](https://www.dartlang.org/articles/libraries/zones).

If you are declaring a static variable, this package gives you:
  * Type-safe zone-scoped mutability
  * Helpful methods for forking zones

# Getting Started
```yaml
dependencies:
  zone_local: ^0.1.1
```

```dart
import 'package:zone_local/zone_local.dart';

final ZoneLocal<String> greeting = new ZoneLocal<String>(defaultValue:"Hello!");

void main() {
  print(greeting.value);
  
  // Run a function in a forked zone that sees value "Hi!"
  greeting.forkZoneWithValue("Hi!").run(() {
    print(greeting.value);
  });
}
```
## Changelog







 
