copyWith method

BusinessGreetingMessageSettings copyWith({
  1. int? shortcutId,
  2. BusinessRecipients? recipients,
  3. int? inactivityDays,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

BusinessGreetingMessageSettings copyWith({
  int? shortcutId,
  BusinessRecipients? recipients,
  int? inactivityDays,
}) =>
    BusinessGreetingMessageSettings(
      shortcutId: shortcutId ?? this.shortcutId,
      recipients: recipients ?? this.recipients,
      inactivityDays: inactivityDays ?? this.inactivityDays,
    );