copyWith method

AutosaveSettings copyWith({
  1. ScopeAutosaveSettings? privateChatSettings,
  2. ScopeAutosaveSettings? groupSettings,
  3. ScopeAutosaveSettings? channelSettings,
  4. List<AutosaveSettingsException>? exceptions,
  5. dynamic extra,
  6. int? clientId,
})

Implementation

AutosaveSettings copyWith({
  ScopeAutosaveSettings? privateChatSettings,
  ScopeAutosaveSettings? groupSettings,
  ScopeAutosaveSettings? channelSettings,
  List<AutosaveSettingsException>? exceptions,
  dynamic extra,
  int? clientId,
}) =>
    AutosaveSettings(
      privateChatSettings: privateChatSettings ?? this.privateChatSettings,
      groupSettings: groupSettings ?? this.groupSettings,
      channelSettings: channelSettings ?? this.channelSettings,
      exceptions: exceptions ?? this.exceptions,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );