copyWith method

WorkStatus copyWith({
  1. bool? isOpen,
  2. String? description,
})

Implementation

WorkStatus copyWith({
  bool? isOpen,
  String? description
}) {
  return WorkStatus(
    isOpen: isOpen ?? this.isOpen,
    description: description ?? this.description
  );
}