withoutConnection method

GraphRefList<E, C, U, G> withoutConnection({
  1. E? record,
  2. String? linkedId,
})

Implementation

GraphRefList<E, C, U, G> withoutConnection({E? record, String? linkedId}) {
  var id = record?.id ?? linkedId;
  if (id == null) {
    return this;
  }
  return GraphRefList(connect: [
    for (final c in _connect)
      if (c.linkedId != id) c,
  ], disconnect: _disconnect);
}