copyWith method

GridEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. List<BodyComponentEntity>? bodyComponents,
  5. String? gridViewId,
  6. StorageConditionsEntity? conditions,
})

Implementation

GridEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  List<BodyComponentEntity>? bodyComponents,
  String? gridViewId,
  StorageConditionsEntity? conditions,
}) {
  return GridEntity(
    appId: appId ?? this.appId,
    description: description ?? this.description,
    bodyComponents: bodyComponents ?? this.bodyComponents,
    gridViewId: gridViewId ?? this.gridViewId,
    conditions: conditions ?? this.conditions,
  );
}