unAttach<P, C> function

bool unAttach<P, C>(
  1. LiveData<P> parent,
  2. C child
)

Implementation

bool unAttach<P, C>(LiveData<P> parent, C child) {
  var len = parent.attachedItems.length;
  parent.attachedItems.removeWhere((key, value) => identical(key, child));
  return parent.attachedItems.length < len;
}