copyWith method
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,
);
}