copyWith method

DeviceIdentifier copyWith({
  1. String? name,
  2. String? os,
  3. String? uuid,
  4. String? osVersion,
  5. String? appVersion,
  6. String? deviceToken,
  7. String? firebaseToken,
  8. bool? active,
  9. int? id,
  10. DateTime? lastLogin,
  11. DateTime? created,
  12. DateTime? updated,
  13. String? ip,
})

Returns a copy of this DeviceIdentifier with the given fields replaced.

Implementation

DeviceIdentifier copyWith({
  String? name,
  String? os,
  String? uuid,
  String? osVersion,
  String? appVersion,
  String? deviceToken,
  String? firebaseToken,
  bool? active,
  int? id,
  DateTime? lastLogin,
  DateTime? created,
  DateTime? updated,
  String? ip,
}) {
  return DeviceIdentifier(
    name: name ?? this.name,
    os: os ?? this.os,
    uuid: uuid ?? this.uuid,
    osVersion: osVersion ?? this.osVersion,
    appVersion: appVersion ?? this.appVersion,
    deviceToken: deviceToken ?? this.deviceToken,
    firebaseToken: firebaseToken ?? this.firebaseToken,
    active: active ?? this.active,
    id: id ?? this.id,
    lastLogin: lastLogin ?? this.lastLogin,
    created: created ?? this.created,
    updated: updated ?? this.updated,
    ip: ip ?? this.ip,
  );
}