copyWith method

Device copyWith({
  1. String? code,
  2. String? description,
  3. String? deviceIdentifier,
  4. String? deviceInfo,
  5. String? companyLicenceCode,
  6. DateTime? createdAt,
  7. String? createdBy,
  8. DateTime? writeAt,
  9. String? writeBy,
})

Implementation

Device copyWith({
  String? code,
  String? description,
  String? deviceIdentifier,
  String? deviceInfo,
  String? companyLicenceCode,
  DateTime? createdAt,
  String? createdBy,
  DateTime? writeAt,
  String? writeBy,
}) =>
    Device(
      code: code ?? this.code,
      description: description ?? this.description,
      deviceIdentifier: deviceIdentifier ?? this.deviceIdentifier,
      deviceInfo: deviceInfo ?? this.deviceInfo,
      companyLicenceCode: companyLicenceCode ?? this.companyLicenceCode,
      createdAt: createdAt ?? this.createdAt,
      createdBy: createdBy ?? this.createdBy,
      writeAt: writeAt ?? this.writeAt,
      writeBy: writeBy ?? this.writeBy,
    );