copyWith method

TradeLicense copyWith({
  1. String? type,
  2. String? license,
  3. String? legalForm,
  4. String? endDate,
})

Implementation

TradeLicense copyWith({
  String? type,
  String? license,
  String? legalForm,
  String? endDate
}) {
  return TradeLicense(
    type: type ?? this.type,
    license: license ?? this.license,
    legalForm: legalForm ?? this.legalForm,
    endDate: endDate ?? this.endDate
  );
}