copyWith method

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

Implementation

@override
GridViewModel copyWith({
  String? documentID,
  String? appId,
  String? name,
  GridViewScrollDirection? scrollDirection,
  GridViewGridType? type,
  int? crossAxisCount,
  MaxCrossAxisExtentType? maxCrossAxisExtentType,
  double? absoluteMaxCrossAxisExtent,
  double? relativeMaxCrossAxisExtent,
  double? childAspectRatio,
  double? padding,
  double? mainAxisSpacing,
  double? crossAxisSpacing,
  StorageConditionsModel? conditions,
}) {
  return GridViewModel(
    documentID: documentID ?? this.documentID,
    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,
  );
}