copyWith method

SpaceProperty copyWith({
  1. String? id,
  2. String? key,
  3. dynamic value,
  4. DateTime? createdAt,
  5. String? createdBy,
  6. SpacePropertyVersion? version,
})

Implementation

SpaceProperty copyWith(
    {String? id,
    String? key,
    dynamic value,
    DateTime? createdAt,
    String? createdBy,
    SpacePropertyVersion? version}) {
  return SpaceProperty(
    id: id ?? this.id,
    key: key ?? this.key,
    value: value ?? this.value,
    createdAt: createdAt ?? this.createdAt,
    createdBy: createdBy ?? this.createdBy,
    version: version ?? this.version,
  );
}