reactiveList<E> function
Creates a reactive list from the given list.
If list is already reactive, it is returned as-is.
Otherwise, a new reactive List is created from the raw value.
E is the type of elements in the list.
Implementation
List<E> reactiveList<E>(List<E> list) {
if (impl.isReactive(list)) {
return list;
}
return impl.ReactiveList<E>(impl.toRaw(list));
}