copyWith method

  1. @override
UpdateScopeNotificationSettings copyWith({
  1. NotificationSettingsScope? scope,
  2. ScopeNotificationSettings? notificationSettings,
  3. dynamic extra,
  4. int? clientId,
})
override

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

Implementation

@override
UpdateScopeNotificationSettings copyWith({
  NotificationSettingsScope? scope,
  ScopeNotificationSettings? notificationSettings,
  dynamic extra,
  int? clientId,
}) =>
    UpdateScopeNotificationSettings(
      scope: scope ?? this.scope,
      notificationSettings: notificationSettings ?? this.notificationSettings,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );