copyWith method

SessionMode copyWith({
  1. Object? id = _acpCopyWithAbsent,
  2. Object? name = _acpCopyWithAbsent,
  3. Object? description = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

SessionMode copyWith({
  Object? id = _acpCopyWithAbsent,
  Object? name = _acpCopyWithAbsent,
  Object? description = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => SessionMode(
  id: identical(id, _acpCopyWithAbsent) ? this.id : id as SessionModeId,
  name: identical(name, _acpCopyWithAbsent) ? this.name : name as String,
  description: identical(description, _acpCopyWithAbsent)
      ? this.description
      : description as String?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);