copyWith method

EmitNewStateAction copyWith({
  1. ID? id,
  2. ID? stateID,
  3. List<EmitNewStatePassingParameter>? fields,
  4. ID? cubitID,
})

Implementation

EmitNewStateAction copyWith({
  ID? id,
  ID? stateID,
  List<EmitNewStatePassingParameter>? fields,
  ID? cubitID,
}) {
  return EmitNewStateAction(
    id: id ?? this.id,
    stateID: stateID ?? this.stateID,
    fields: fields ?? this.fields,
    cubitID: cubitID ?? this.cubitID,
  );
}