copyWith method

NotificationActionInput copyWith({
  1. String? id,
  2. String? title,
  3. String? placeholder,
  4. bool? multiline,
})

Creates a copy of this input with the given fields replaced.

Implementation

NotificationActionInput copyWith({
  String? id,
  String? title,
  String? placeholder,
  bool? multiline,
}) {
  return NotificationActionInput(
    id: id ?? this.id,
    title: title ?? this.title,
    placeholder: placeholder ?? this.placeholder,
    multiline: multiline ?? this.multiline,
  );
}