triggerRef<T> function
Triggers the update of a Ref instance.
If ref is an external implementation, a warning is logged in development mode.
T is the type of the value held by the Ref.
Implementation
void triggerRef<T>(public.Ref<T> ref) {
if (ref is private.Ref) {
(ref as private.Ref).dep.trigger();
} else if (dev) {
warn('The ref is an external impl ref, please use your impl trigger.');
}
}