copyWith method
NodeInstance
copyWith({
- String? id,
- Color? color,
- Map<
String, PortInstance> ? ports, - Map<
String, FieldInstance> ? fields, - NodeState? state,
- dynamic onRendered(
- NodeInstance node
- Offset? offset,
Implementation
NodeInstance copyWith({
String? id,
Color? color,
Map<String, PortInstance>? ports,
Map<String, FieldInstance>? fields,
NodeState? state,
Function(NodeInstance node)? onRendered,
Offset? offset,
}) {
return NodeInstance(
id: id ?? this.id,
prototype: prototype,
ports: ports ?? this.ports,
state: state ?? this.state,
fields: fields ?? this.fields,
offset: offset ?? this.offset,
);
}