copyWith method

  1. @override
DividerModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. RgbModel? color,
  5. double? height,
  6. double? thickness,
  7. double? indent,
  8. double? endIndent,
  9. StorageConditionsModel? conditions,
})
override

Implementation

@override
DividerModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  RgbModel? color,
  double? height,
  double? thickness,
  double? indent,
  double? endIndent,
  StorageConditionsModel? conditions,
}) {
  return DividerModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    description: description ?? this.description,
    color: color ?? this.color,
    height: height ?? this.height,
    thickness: thickness ?? this.thickness,
    indent: indent ?? this.indent,
    endIndent: endIndent ?? this.endIndent,
    conditions: conditions ?? this.conditions,
  );
}