remove method

bool remove(
  1. Object value, {
  2. bool notify = true,
})

Removes a value from this Relationship

Implementation

bool remove(Object value, {bool notify = true}) {
  assert(value is E);
  final model = value as E;
  if (isInitialized) {
    _ensureModelIsInitialized(model);
    _graph._removeEdge(
      _ownerKey,
      model._key!,
      metadata: _name,
      inverseMetadata: _inverseName,
      notify: notify,
    );
    return true;
  }
  return _uninitializedModels.remove(model);
}