copyWith method

PermissionOption copyWith({
  1. Object? optionId = _acpCopyWithAbsent,
  2. Object? name = _acpCopyWithAbsent,
  3. Object? kind = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

PermissionOption copyWith({
  Object? optionId = _acpCopyWithAbsent,
  Object? name = _acpCopyWithAbsent,
  Object? kind = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => PermissionOption(
  optionId: identical(optionId, _acpCopyWithAbsent)
      ? this.optionId
      : optionId as PermissionOptionId,
  name: identical(name, _acpCopyWithAbsent) ? this.name : name as String,
  kind: identical(kind, _acpCopyWithAbsent)
      ? this.kind
      : kind as PermissionOptionKind,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);