copyWith method

LocalChange copyWith({
  1. int? id,
  2. String? entityType,
  3. String? entityId,
  4. String? entityRev,
  5. bool? deleted,
  6. Uint8List? protoBytes,
  7. DateTime? createMoment,
  8. bool? concluded,
  9. DateTime? concludedMoment,
  10. String? error,
  11. bool? dismissed,
})

Implementation

LocalChange copyWith({
  int? id,
  String? entityType,
  String? entityId,
  String? entityRev,
  bool? deleted,
  Uint8List? protoBytes,
  DateTime? createMoment,
  bool? concluded,
  DateTime? concludedMoment,
  String? error,
  bool? dismissed,
}) {
  return LocalChange(
    entityType: entityType ?? this.entityType,
    entityId: entityId ?? this.entityId,
    entityRev: entityRev ?? this.entityRev,
    deleted: deleted ?? this.deleted,
    protoBytes: protoBytes ?? this.protoBytes,
    createMoment: createMoment ?? this.createMoment,
    concluded: concluded ?? this.concluded,
    concludedMoment: concludedMoment ?? this.concludedMoment,
    error: error ?? this.error,
    dismissed: dismissed ?? this.dismissed,
  );
}