$rx<T>.$refElse constructor

$rx<T>.$refElse(
  1. String ref,
  2. T val, {
  3. List<String>? tags,
})

Implementation

factory $rx.$refElse(String ref, T val, {List<String>? tags})
{
  final $rx<T?>? _rx = _cache[ref] as $rx<T?>?;

  return _rx as $rx<T>? ?? $rx(val, ref:ref, tags:tags);
}