copyWith method

SessionModeState copyWith({
  1. Object? currentModeId = _acpCopyWithAbsent,
  2. Object? availableModes = _acpCopyWithAbsent,
  3. Object? meta = _acpCopyWithAbsent,
})

Implementation

SessionModeState copyWith({
  Object? currentModeId = _acpCopyWithAbsent,
  Object? availableModes = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => SessionModeState(
  currentModeId: identical(currentModeId, _acpCopyWithAbsent)
      ? this.currentModeId
      : currentModeId as SessionModeId,
  availableModes: identical(availableModes, _acpCopyWithAbsent)
      ? this.availableModes
      : availableModes as List<SessionMode>,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);