copyWith method

DomainRecord copyWith({
  1. String? id,
  2. String? type,
  3. String? name,
  4. String? data,
  5. int? priority,
  6. int? port,
  7. int? ttl,
  8. int? weight,
  9. int? flags,
  10. int? tag,
})

Implementation

DomainRecord copyWith({
  String? id,
  String? type,
  String? name,
  String? data,
  int? priority,
  int? port,
  int? ttl,
  int? weight,
  int? flags,
  int? tag,
}) {
  return DomainRecord(
    id: id ?? this.id,
    type: type ?? this.type,
    name: name ?? this.name,
    data: data ?? this.data,
    priority: priority ?? this.priority,
    port: port ?? this.port,
    ttl: ttl ?? this.ttl,
    weight: weight ?? this.weight,
    flags: flags ?? this.flags,
    tag: tag ?? this.tag,
  );
}