Ref<T>.create constructor
Ref<T>.create (
- T? value
create a new Ref instance pointing to a
unique key generated automatically. To
access the generated key, see: receipt.
The created reference will host value
final ref = Ref.create(value);
Implementation
factory Ref.create(T? value) => Ref<T>.of(ID.unique).set(value);