ref property

If Ref is passed to ScopedValue, it returns a Ref that can be referenced by descendants.

If Ref is not passed to ScopedValue, an error will result.

ScopedValueRefが渡された場合、子孫によって参照可能なRefを返します。

ScopedValueRefが渡されていない場合、エラーになります。

Implementation

QueryScopedValueRef<TRef> get ref {
  final ref = value.ref;
  assert(ref != null, "[ref] is not set.");
  return QueryScopedValueRef<TRef>._(ref: ref!, state: this);
}