copyWith method

GridViewEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? name,
  4. int? scrollDirection,
  5. int? type,
  6. int? crossAxisCount,
  7. int? maxCrossAxisExtentType,
  8. double? absoluteMaxCrossAxisExtent,
  9. double? relativeMaxCrossAxisExtent,
  10. double? childAspectRatio,
  11. double? padding,
  12. double? mainAxisSpacing,
  13. double? crossAxisSpacing,
  14. StorageConditionsEntity? conditions,
})

Implementation

GridViewEntity copyWith({
  String? documentID,
  String? appId,
  String? name,
  int? scrollDirection,
  int? type,
  int? crossAxisCount,
  int? maxCrossAxisExtentType,
  double? absoluteMaxCrossAxisExtent,
  double? relativeMaxCrossAxisExtent,
  double? childAspectRatio,
  double? padding,
  double? mainAxisSpacing,
  double? crossAxisSpacing,
  StorageConditionsEntity? conditions,
}) {
  return GridViewEntity(
    appId: appId ?? this.appId,
    name: name ?? this.name,
    scrollDirection: scrollDirection ?? this.scrollDirection,
    type: type ?? this.type,
    crossAxisCount: crossAxisCount ?? this.crossAxisCount,
    maxCrossAxisExtentType:
        maxCrossAxisExtentType ?? this.maxCrossAxisExtentType,
    absoluteMaxCrossAxisExtent:
        absoluteMaxCrossAxisExtent ?? this.absoluteMaxCrossAxisExtent,
    relativeMaxCrossAxisExtent:
        relativeMaxCrossAxisExtent ?? this.relativeMaxCrossAxisExtent,
    childAspectRatio: childAspectRatio ?? this.childAspectRatio,
    padding: padding ?? this.padding,
    mainAxisSpacing: mainAxisSpacing ?? this.mainAxisSpacing,
    crossAxisSpacing: crossAxisSpacing ?? this.crossAxisSpacing,
    conditions: conditions ?? this.conditions,
  );
}