create<T> function

ScopedRef<T> create<T>(
  1. T create()
)

Creates a ScopedRef which can later be used to access the value, T returned by create.

Implementation

ScopedRef<T> create<T>(T Function() create) => ScopedRef<T>(create);