copyWith method

  1. @override
DialogModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? title,
  4. String? description,
  5. List<BodyComponentModel>? bodyComponents,
  6. BackgroundModel? backgroundOverride,
  7. DialogLayout? layout,
  8. bool? includeHeading,
  9. GridViewModel? gridView,
  10. StorageConditionsModel? conditions,
})
override

Implementation

@override
DialogModel copyWith({
  String? documentID,
  String? appId,
  String? title,
  String? description,
  List<BodyComponentModel>? bodyComponents,
  BackgroundModel? backgroundOverride,
  DialogLayout? layout,
  bool? includeHeading,
  GridViewModel? gridView,
  StorageConditionsModel? conditions,
}) {
  return DialogModel(
    documentID: documentID ?? this.documentID,
    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,
    gridView: gridView ?? this.gridView,
    conditions: conditions ?? this.conditions,
  );
}