copyWith method

Edge<EdgeType, IdType> copyWith({
  1. EdgeType? data,
  2. IdType? from,
  3. IdType? to,
  4. String? name,
})

Implementation

Edge<EdgeType, IdType> copyWith({
  EdgeType? data,
  IdType? from,
  IdType? to,
  String? name,
}) {
  return Edge<EdgeType, IdType>(
    data: data ?? this.data,
    from: from ?? this.from,
    to: to ?? this.to,
    name: name ?? this.name,
  );
}