copyWith method

Data copyWith({
  1. List<Source>? source,
  2. List<SubSource>? subSource,
  3. List<Budget>? budget,
  4. List<Priority>? priority,
  5. List<Area>? area,
  6. List<Category>? category,
  7. List<LeadType>? leadType,
  8. List<UnitType>? unitType,
  9. List<UnitType>? buyType,
})

Implementation

Data copyWith({  List<Source>? source,
  List<SubSource>? subSource,
  List<Budget>? budget,
  List<Priority>? priority,
  List<Area>? area,
  List<Category>? category,
  List<LeadType>? leadType,
  List<UnitType>? unitType,
  List<UnitType>? buyType,
}) => Data(  source: source ?? _source,
  subSource: subSource ?? _subSource,
  budget: budget ?? _budget,
  priority: priority ?? _priority,
  area: area ?? _area,
  category: category ?? _category,
  leadType: leadType ?? _leadType,
  unitType: unitType ?? _unitType,
  buyType: buyType ?? _buyType,
);