copyWith method

EnhancedTagModel copyWith({
  1. String? id,
  2. dynamic tagTypeCode,
  3. String? startTime,
  4. dynamic endTime,
  5. DateTime? startDay,
  6. dynamic endDay,
  7. dynamic comment,
  8. dynamic customName,
})

Implementation

EnhancedTagModel copyWith(
    {String? id,
    dynamic tagTypeCode,
    String? startTime,
    dynamic endTime,
    DateTime? startDay,
    dynamic endDay,
    dynamic comment,
    dynamic customName}) {
  return EnhancedTagModel(
      id: id ?? this.id,
      tagTypeCode: tagTypeCode ?? this.tagTypeCode,
      startTime: startTime ?? this.startTime,
      endTime: endTime ?? this.endTime,
      startDay: startDay ?? this.startDay,
      endDay: endDay ?? this.endDay,
      comment: comment ?? this.comment,
      customName: customName ?? this.customName);
}