copyWith method

NotificationV2 copyWith({
  1. int? id,
  2. int? deviceId,
  3. String? type,
  4. String? message,
  5. DateTime? timestamp,
  6. String? serialNumber,
  7. String? displayName,
  8. int? epochTimestamp,
})

Implementation

NotificationV2 copyWith(
    {int? id,
    int? deviceId,
    String? type,
    String? message,
    DateTime? timestamp,
    String? serialNumber,
    String? displayName,
    int? epochTimestamp}) {
  return NotificationV2(
      id: id ?? this.id,
      deviceId: deviceId ?? this.deviceId,
      type: type ?? this.type,
      message: message ?? this.message,
      timestamp: timestamp ?? this.timestamp,
      serialNumber: serialNumber ?? this.serialNumber,
      displayName: displayName ?? this.displayName,
      epochTimestamp: epochTimestamp ?? this.epochTimestamp);
}