$cmp<T> constructor

$cmp<T>(
  1. Iterable<String> refs,
  2. Function fn, {
  3. String? ref,
})

Implementation

$cmp(this.refs, this.fn, {String? ref}) : super(fn() as T?, ref:ref)
{
  _subKey = _instance.subscribe(refs, (_ref, _data)=>value=fn() as T?);
}