copyWith method

AssingVariableFromElement copyWith({
  1. ID? cubitID,
  2. ID? stateID,
  3. ID? variableID,
  4. String? jsonKey,
  5. int? targetIndex,
})

Implementation

AssingVariableFromElement copyWith({
  ID? cubitID,
  ID? stateID,
  ID? variableID,
  String? jsonKey,
  int? targetIndex,
}) {
  return AssingVariableFromElement(
    id: id,
    cubitID: cubitID ?? this.cubitID,
    stateID: stateID ?? this.stateID,
    variableID: variableID ?? this.variableID,
    type: type,
    jsonKey: jsonKey ?? this.jsonKey,
    targetIndex: targetIndex ?? this.targetIndex,
  );
}