copyWith method

CubitStateEntity copyWith({
  1. ID? id,
  2. String? name,
  3. Map<ID, Variable>? fields,
})

Implementation

CubitStateEntity copyWith({
  ID? id,
  String? name,
  Map<ID, Variable>? fields,
}) {
  return CubitStateEntity(
    id: id ?? this.id,
    name: name ?? this.name,
    fields: fields ?? this.fields,
  );
}