get<T> function

T get<T>(
  1. Readable<T> store
)

Returns the current value of the store.

Implementation

T get<T>(Readable<T> store) {
  assert(store is CurrentSource<T>);
  return (store as CurrentSource<T>).source;
}