copyWith method

Item copyWith({
  1. String? scopeName,
  2. String? scopeKeys,
  3. String? id,
  4. String? payload,
  5. String? updatedAt,
  6. Value<String?> deletedAt = const Value.absent(),
})

Implementation

Item copyWith({
  String? scopeName,
  String? scopeKeys,
  String? id,
  String? payload,
  String? updatedAt,
  Value<String?> deletedAt = const Value.absent(),
}) => Item(
  scopeName: scopeName ?? this.scopeName,
  scopeKeys: scopeKeys ?? this.scopeKeys,
  id: id ?? this.id,
  payload: payload ?? this.payload,
  updatedAt: updatedAt ?? this.updatedAt,
  deletedAt: deletedAt.present ? deletedAt.value : this.deletedAt,
);