copyWith method

ErrorDetail copyWith({
  1. String? id,
  2. String? name,
  3. String? detail,
})

Implementation

ErrorDetail copyWith({String? id, String? name, String? detail}) {
  return ErrorDetail(
      id: id ?? this.id,
      name: name ?? this.name,
      detail: detail ?? this.detail);
}