copyWith method

SessionConfigOptionBoolean copyWith({
  1. Object? id = _acpCopyWithAbsent,
  2. Object? name = _acpCopyWithAbsent,
  3. Object? description = _acpCopyWithAbsent,
  4. Object? category = _acpCopyWithAbsent,
  5. Object? meta = _acpCopyWithAbsent,
  6. Object? type = _acpCopyWithAbsent,
  7. Object? currentValue = _acpCopyWithAbsent,
})

Implementation

SessionConfigOptionBoolean copyWith({
  Object? id = _acpCopyWithAbsent,
  Object? name = _acpCopyWithAbsent,
  Object? description = _acpCopyWithAbsent,
  Object? category = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
  Object? type = _acpCopyWithAbsent,
  Object? currentValue = _acpCopyWithAbsent,
}) => SessionConfigOptionBoolean(
  id: identical(id, _acpCopyWithAbsent) ? this.id : id as SessionConfigId,
  name: identical(name, _acpCopyWithAbsent) ? this.name : name as String,
  description: identical(description, _acpCopyWithAbsent)
      ? this.description
      : description as String?,
  category: identical(category, _acpCopyWithAbsent)
      ? this.category
      : category as SessionConfigOptionCategory?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
  type: identical(type, _acpCopyWithAbsent) ? this.type : type as String,
  currentValue: identical(currentValue, _acpCopyWithAbsent)
      ? this.currentValue
      : currentValue as bool,
);