copyWith method
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,
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,
);
}