copyWith method

DialogEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. List<BodyComponentEntity>? bodyComponents,
  6. BackgroundEntity? backgroundOverride,
  7. int? layout,
  8. bool? includeHeading,
  9. String? gridViewId,
  10. StorageConditionsEntity? conditions,
})

Implementation

DialogEntity copyWith({
  String? documentID,
  String? appId,
  String? title,
  String? description,
  List<BodyComponentEntity>? bodyComponents,
  BackgroundEntity? backgroundOverride,
  int? layout,
  bool? includeHeading,
  String? gridViewId,
  StorageConditionsEntity? conditions,
}) {
  return DialogEntity(
    appId: appId ?? this.appId,
    title: title ?? this.title,
    description: description ?? this.description,
    bodyComponents: bodyComponents ?? this.bodyComponents,
    backgroundOverride: backgroundOverride ?? this.backgroundOverride,
    layout: layout ?? this.layout,
    includeHeading: includeHeading ?? this.includeHeading,
    gridViewId: gridViewId ?? this.gridViewId,
    conditions: conditions ?? this.conditions,
  );
}