copyWith method

  1. @override
GridModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<BodyComponentModel>? bodyComponents,
  5. GridViewModel? gridView,
  6. StorageConditionsModel? conditions,
})
override

Implementation

@override
GridModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  List<BodyComponentModel>? bodyComponents,
  GridViewModel? gridView,
  StorageConditionsModel? conditions,
}) {
  return GridModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    bodyComponents: bodyComponents ?? this.bodyComponents,
    gridView: gridView ?? this.gridView,
    conditions: conditions ?? this.conditions,
  );
}