copyWith method

Empresa copyWith({
  1. String? code,
  2. String? description,
  3. String? businessName,
  4. String? businessDoc,
  5. String? address,
  6. bool? isDisabled,
  7. String? comment,
  8. String? imageLocation,
  9. DateTime? createdAt,
  10. String? createdBy,
  11. DateTime? writeAt,
  12. String? writeBy,
})

Implementation

Empresa copyWith({
  String? code,
  String? description,
  String? businessName,
  String? businessDoc,
  String? address,
  bool? isDisabled,
  String? comment,
  String? imageLocation,
  DateTime? createdAt,
  String? createdBy,
  DateTime? writeAt,
  String? writeBy,
}) =>
    Empresa(
      code: code ?? this.code,
      description: description ?? this.description,
      businessName: businessName ?? this.businessName,
      businessDoc: businessDoc ?? this.businessDoc,
      address: address ?? this.address,
      isDisabled: isDisabled ?? this.isDisabled,
      comment: comment ?? this.comment,
      imageLocation: imageLocation ?? this.imageLocation,
      createdAt: createdAt ?? this.createdAt,
      createdBy: createdBy ?? this.createdBy,
      writeAt: writeAt ?? this.writeAt,
      writeBy: writeBy ?? this.writeBy,
    );