value<T> method
The value can be retrieve by calling use from anywhere within the action method provided to runSync
Scope()
..value<int>(ageKey, 18)
..value<int>(heightKey, getHeight())
..run(() {}
Implementation
void value<T>(ScopeKey<T> key, T value) {
_checkDuplicateKey(key);
_provided.putIfAbsent(key, () => value);
}