copyWith method

Twitter copyWith({
  1. int? id,
  2. String? uid,
  3. String? companyUid,
  4. String? pageId,
  5. String? payload,
  6. String? accessToken,
  7. String? status,
  8. DateTime? createdAt,
  9. DateTime? updatedAt,
})

Implementation

Twitter copyWith({
  int? id,
  String? uid,
  String? companyUid,
  String? pageId,
  String? payload,
  String? accessToken,
  String? status,
  DateTime? createdAt,
  DateTime? updatedAt,
}) {
  return Twitter(
    id: id ?? this.id,
    uid: uid ?? this.uid,
    companyUid: companyUid ?? this.companyUid,
    pageId: pageId ?? this.pageId,
    payload: payload ?? this.payload,
    accessToken: accessToken ?? this.accessToken,
    status: status ?? this.status,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}