copyWith method

NotificationInfo copyWith({
  1. String? senderName,
  2. Uint8List? imageBytes,
  3. String? content,
  4. String? value,
  5. dynamic onPressed(
    1. String payload
    )?,
})

Implementation

NotificationInfo copyWith({
  String? senderName,
  Uint8List? imageBytes,
  String? content,
  String? value,
  Function(String payload)? onPressed,
}) {
  return NotificationInfo(
    senderName: senderName ?? this.senderName,
    imageBytes: imageBytes ?? this.imageBytes,
    content: content ?? this.content,
    value: value ?? this.value,
    onPressed: onPressed ?? this.onPressed,
  );
}